Thanks guys,

I had to change two things to get it to work:
1. As Dennis pointed out, all of the variables in the model had to be
variable names in the preds data frame.
2. I had to use na.pass in the following statement to be able to merge the
predicted values with the preds data frame because of all the NAs among the
predicted values:
preds$predicted <- predict(lmemodel, preds, na.action=na.pass)

Thanks again for your help on this!
-- 
View this message in context: 
http://r.789695.n4.nabble.com/Plotting-individual-trajectories-from-individual-growth-model-tp3315494p3321683.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to