rand {lmerTest} | R Documentation |
Returns a data frame with values of Chi square statistics and corresponding p-values of likelihood ratio tests.
rand(model, ...)
model |
linear mixed effects model (lmer object). |
... |
other potential arguments. |
The columns of the data are:
Chisq: The value of the chi square statistics
Chi Df: The degrees of freedom for the test
p.value: The p-value of the likelihood ratio test for the effect
Produces a data frame with LR tests for the random terms.
Alexandra Kuznetsova, Per Bruun Brockhoff, Rune Haubo Bojesen Christensen
#import lme4 package and lmerTest package library(lmerTest) #lmer model with correlation between intercept and slopes #in the random part m <- lmer(Preference ~ sens2+Homesize+(1+sens2|Consumer), data=carrots) # table with p-values for the random effects rand(m)