rand: Performs likelihood ratio test on random effects of linear...

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Returns a data frame with values of Chi square statistics and corresponding p-values of likelihood ratio tests.

Usage

1
rand(model, ...)

Arguments

model

linear mixed effects model (lmer object).

...

other potential arguments.

Details

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

Value

Produces a data frame with LR tests for the random terms.

Author(s)

Alexandra Kuznetsova, Per Bruun Brockhoff, Rune Haubo Bojesen Christensen

See Also

step, lsmeans, difflsmeans

Examples

1
2
3
4
5
6
7
8
9
#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)

runehaubo/lmerTest documentation built on May 14, 2019, 6:15 p.m.