我在R中进行了Beta回归,并希望进行残留诊断。我已经使用了绘图功能并获得了绘图,但是未标记潜在的异常值。如何将相应的标签贴到离群值上?
breg.full <- betareg(Percentage ~ Total_testscore + Campus + Programme +
Gender + SE_track + Hours_Math_SE, data = starters, # [-c(53, 24, 35), ]
link = "logit") # , , link.phi = NULL, type = "ML"
summary(breg.full)
par(mfrow = c(2,3))
plot(breg.full, which = 1:6)
编辑:
作者提供了此代码的链接(http://www.de.ufpe.br/~cribari/betareg_example.zip。),但是它不再起作用...