I am trying to find several covariance models using gls and lme. My goal is to determine which covariance model suits my data better. I am afraid, however, that I am not specifying the code correctly. Can someone take a look at my code and help me figure out if I am doing everything right correctly?
# Unstructured covariance matrix UN <- gls(y ~ ses + time, data, corr=corSymm(form=~1|id), weights=varIdent(form=~1|time), method="REML", control=lmeControl(msMaxIter = 500, msVerbose = TRUE), na.action=na.omit)
thanks
source share