Skip to content

augPred and NAs

1 message · Morten Gram Pedersen

#
I have a problem using augPred from the nlme package on a data set with NAs.

Consider this example, modified from the augPred help page:
Error in if (from == to) rep.int(from, length.out) else as.vector(c(from,  : 
  missing value where TRUE/FALSE needed

Any help on how to handle NAs in such cases is most appreciated. Neither Pinheiro & Bates nor Google helped...

Thanks,
Morten Pedersen