[R-sig-ME] getting between groups variance when using (1|x:y) in the formula

Hans Ekbrand hans at sociologi.cjb.net
Thu May 31 18:11:05 CEST 2012


On 2012-05-31 17:35, Hans Ekbrand wrote:
> Let's say I have a formula like this
>
> my.fit <- glmer(w ~ 1 + y + (1|x) + (1|x:y) + z)
>
> Then the summary() output gives information about variance and std.dev 
> for the random term x:y
>
> and ranef(my.fit, postVar = TRUE) gives estimates and standard 
> deviations for x and each value of x:y.
>
> Is there a way to get a single measure of the variance of y within x?

I meant to say "a singe measure of the variance of y within x, for each 
level of y".



More information about the R-sig-mixed-models mailing list