Skip to content
Prev 299260 / 398503 Next

Mixed Models providing a correlation structure.

You need to look at the corSymm correlation class for nlme models.

Essentially, in your lme call, you need to do 
correlation=corSymm(mat[lower.tri(mat)], fixed=TRUE)

Where mat is your (symmetric) variance-covariance matrix. Remember to 
make sure that the rows and columns of mat are in the same order as in 
your data frame.

Cheers,

Simon.
On 06/07/12 11:43, Marcio wrote: