Skip to content
Back to formatted view

Raw Message

Message-ID: <4A29162F.9080607@ufl.edu>
Date: 2009-06-05T12:57:19Z
From: Ben Bolker
Subject: extract correlaton from VarCorr
In-Reply-To: <63b87ebe0906050525q55e8d0e9q37ee094356e91894@mail.gmail.com>

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