Skip to content
Prev 8820 / 20628 Next

quick question regarding your "residual" command for your lmer command - please help me

Yugo--

Most of what you write below is related to general statistical questions 
about mixed models, and hence would be more appropriate for a general 
stats listserv or local stat support (you know, there are some good stat 
consulting facilities at UW...).

With respect to the following specific question:

 >> > But my question then is, is this variance estimate the "within group
 >> > variance" explained in different textbooks of multilevel analysis? 
  But

Yes, the "Residual" variance reported by summary() form either lmer() or 
nlme() is what variously gets called "within group" or "level-1" error / 
variance.  For example, we can use this (from a random-intercept) model 
as our estimate of the within-group variance to calculate the intraclass 
correlation coefficient.

As a more general comment, you might check out UCLA's stats webpages, 
which have many helpful examples of stats procedures (including R and 
including mixed models aka multilevel models aka hierarchical linear 
models).  For example, there is R code to accompany Singer and Willett's 
book on longitudinal data analysis, which is one of the best 
introductions I know of for social science types:

http://www.ats.ucla.edu/stat/examples/alda.htm

Hope that helps.

cheers, Dave