[R-sig-ME] extract correlaton from VarCorr
Ben Bolker
bolker at ufl.edu
Fri Jun 5 14:57:19 CEST 2009
attr(VarCorr(fitmodel)$group,"correlation")[2,1]
Ursa Reja wrote:
> Dear R users,
>
> how do I extract correlation between random effects of 0.06836857 got by
> VarCor function (look below)?
> Tnx?
>
> VarCorr(fitmodel)
> $group
> (Intercept) x
> (Intercept) 0.25016744 0.01788204
> x 0.01788204 0.27345787
> attr(,"stddev")
> (Intercept) x
> 0.5001674 0.5229320
> attr(,"correlation")
> (Intercept) x
> (Intercept) 1.00000000 0.06836857
> x 0.06836857 1.00000000
>
> attr(,"sc")
> sigmaREML
> 0.7239645
>
> [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-mixed-models at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models
--
Ben Bolker
Associate professor, Biology Dep't, Univ. of Florida
bolker at ufl.edu / www.zoology.ufl.edu/bolker
GPG key: www.zoology.ufl.edu/bolker/benbolker-publickey.asc
More information about the R-sig-mixed-models
mailing list