inst/snippet/lm-star-dfbeta.R

star.plot3 <- xyplot(dfbeta(star.model2)[,'temp']~index,
    data=hotstar,
    ylab="DFBETA",
    panel=function(x,y,...) {
        ids <- which(abs(y) > 0.5)
        panel.xyplot(x,y,...)
        grid.text(
            x=x[ids]+1.5, y = y[ids],
            as.character(ids), default.units="native")
    })
coef(lm(light~temp,hotstar))
coef(lm(light~temp,hotstar[-7,]))

Try the fastR package in your browser

Any scripts or data that you put into this service are public.

fastR documentation built on May 1, 2019, 11:18 p.m.