CVlm()
if (FALSE) {
CVlm(data=nihills, form.lm=formula(log(time)~log(climb)+log(dist)),
plotit="Observed")
CVlm(data=nihills, form.lm=formula(log(time)~log(climb)+log(dist)),
plotit="Residual")
out <- CVlm(data=nihills, form.lm=formula(log(time)~log(climb)+log(dist)),
plotit="Observed")
out[c("ms","df")]
}
Run the code above in your browser using DataLab