Displaying 2 results from an estimated 2 matches for "hatval".
Did you mean:
hasval
2006 Jan 10
2
standardized residuals (rstandard & plot.lm) (PR#8468)
This bug is not quite fixed - the example from my original report now =
works using R-2.2.1, but
plot(Uniform, 6)
does not. The bug is due to
if (show[6]) {
ymx <- max(cook, na.rm =3D TRUE) * 1.025
g <- hatval/(1 - hatval) # Potential division by zero here #
plot(g, cook, xlim =3D c(0, max(g)), ylim =3D c(0, ymx),=20
main =3D main, xlab =3D "Leverage", ylab =3D "Cook's distance",=
=20
xaxt =3D "n", type =3D "n", ...)
...
All oth...
2005 Apr 23
3
Enhanced version of plot.lm()
...;Obs. number", ylab = "Cook's distance", ...)
if (one.fig)
title(sub = sub.caption, ...)
mtext(caption[4], 3, 0.25)
if (id.n > 0)
text.id(show.r, cook[show.r], show.r, adj.x=FALSE)
}
if (show[5]) {
ylim <- range(rs, na.rm = TRUE)
hatval <- hatvalues(x)
if (id.n > 0) {
ylim <- ylim + c(-1, 1) * 0.08 * diff(ylim)
show.r <- order(-cook)[iid]
}
plot(hatval, rs, ylim = ylim, main = main,
xlab = "Leverages", ylab = ylab23,
type="n", ...)
panel(hatval,...