Skip to content
Prev 14798 / 20628 Next

glmmTMB: variance-covariance matrix parameterization

Starting at

https://github.com/glmmTMB/glmmTMB/blob/master/glmmTMB/src/glmmTMB.cpp#L151

for an nxn variance-covariance matrix, we have the first n parameters
as the logarithms of the standard deviation.  The remaining parameters
fill in the lower triangle (in column-major order) of the Cholesky
factor of the correlation matrix: information on this is at

http://kaskr.github.io/adcomp/classUNSTRUCTURED__CORR__t.html

So, for a 2x2 unstructured variance-covariance matrix, the first two
parameters are the log-sd, the third parameter is the correlation.

 I'm adding this to the documentation for ?VarCorr ...




On Sun, Aug 14, 2016 at 5:50 PM, Sophia Kyriakou
<sophia.kyriakou17 at gmail.com> wrote: