Skip to content
Prev 15095 / 20628 Next

Questions of nlme package in R

On Sun, Dec 11, 2016 at 9:14 PM, ???? <oyangxz0412 at 163.com> wrote:
(Sorry; I replied privately that this should go to the list but
didn't see that you had *already* sent it to the list.)

   If you read Pinheiro and Bates 2000 (Mixed-effect models in S and
S-PLUS) you'll see that in the modern mixed model framework, testing
variance components is a little tricky; typically you can use
likelihood ratio tests, but they are known to be conservative.
http://tinyurl.com/glmmFAQ#testing-significance-of-random-effects also
has a bit of information, although it doesn't give the basic recipe:
to test the significance of a random effect, fit the model with (call
the fitted model m1) and without (m0) the random effect, and use

anova(m0,m1)

to perform a likelihood ratio test.

  sincerely
    Ben Bolker