Skip to content

basic question

2 messages · Rachel Cohen, Ben Bolker

#
Rachel Cohen <stat.list at ...> writes:
Unfortunately, this is an easy question to state but not (in my
opinion) an easy question to answer unambiguously.
It's confusing!

 [snip]

 A *reasonable* definition (although not the only one) would be
to count the number of fixed-effect parameters ('beta' in much
of the literature) and the number of random-effect parameters
(generally referred to as 'theta' in the lme4 documentation,
but varying a great deal among references):

length(fixef(model))+length(getME(model,"theta"))

  in your case that's 3 parameters for the fixed effects
and 6 RE parameters (you have a 3x3 variance-covariance matrix of the
random effects, the matrix is symmetric, so counting the
diagonal plus one triangle gives 3*(3+1)/2 = 6).  Generally one
doesn't count the residual variance since that is estimated
from the (penalized) residual sum of squares.

  It really depends what you want to use the RSE for.  It may
very well not have the properties you're expecting (i.e. the
properties that it has in a simple (non-mixed) linear model ...)

  There's a bit more about parameter-counting issues at
http://glmm.wikidot.com/faq, I think ...
[snip]