Hi... Can someone please explain to me what this error message means? It only appears if I include the correlation= part, but I have no idea why.
Thanks, Joe > ARModel <-lme(Life_Satisfaction ~Time, data = restructuredData, random = > ~Time|Person, method = "ML", na.action = na.exclude, control = > list(opt="optim"),correlation = corAR1(0, form = ~Time|Person)) Error in structure(res, levels = lv, names = nm, class = "factor") : 'names' attribute [323] must be the same length as the vector [0] [[alternative HTML version deleted]] ______________________________________________ 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.