Skip to content
Back to formatted view

Raw Message

Message-ID: <VI1PR0101MB2430182E2678121E2C58D6C8ACA90@VI1PR0101MB2430.eurprd01.prod.exchangelabs.com>
Date: 2016-10-24T10:08:47Z
From: Chen Chun
Subject: How to estimate the standard error of every single random intercept in a mixed linear model?
In-Reply-To: <DB6PR0101MB24230DB767F3AC06A2080433ACDD0@DB6PR0101MB2423.eurprd01.prod.exchangelabs.com>

Dear all,


I am running a mixed linear model with group (a_i) as random intercept:


y_ij=mu + a_i + e_ij


By using lmer() function, the model outputs an estimated variance of a_i (i.e. var_hat(a)), and it is the sum of (1) the variance of the estimated group mean (i.e. between group variance) and (2) the sum of variance for each estimated group mean a_i_hat,   (i.e. sum of within group variance).


for (1) I can compute it as var(ranef(model)$group). However, I dont know how to compute (2), which is the SE of the estimated random intercept for each group. I know that using se.ranef() function in arm package can help me to extract such variance. But I would like to know how these variance are computed? it's relations to residuals and number of observations per group?


Thanks


 Chen


	[[alternative HTML version deleted]]