File: augPredmissing.R

package info (click to toggle)
nlme 3.1.89-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 3,060 kB
  • ctags: 262
  • sloc: ansic: 3,135; makefile: 1
file content (7 lines) | stat: -rw-r--r-- 239 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
library(nlme)
data(Orthodont)
# add a column with an NA that is not used in the fit
Orthodont$Others = runif(nrow(Orthodont))
is.na(Orthodont$Others[3]) = TRUE
fm1 = lme(Orthodont, random = ~1)
augPred(fm1, length.out = 2, level = c(0,1))