Re: [R] Dealing with missing values in a linear mixed model

2011-07-06 Thread Christine
Hi, within lme(), I think it is only possible to do na.action = na.omit. The default action (= na.fail) causes lme() to print an error message and terminate if there are any incomplete observations Best, Christine - -- Christine Adrion, Dipl.-Stat.,MPH Ludwig-Maximilians-Universität München

[R] Dealing with missing values in a linear mixed model

2011-07-06 Thread Debs Majumdar
Hello,    I am trying to run a linear mixed model using model.a <- lme(Psstotals ~ Visit, data=caf, random= ~ Visit|Id) My dataset looks lie the following:     Id   Visit  Agecorrected Psstotals 1 106 0   19    8 2 106 1   19    9     3