|
||||||||||||||||
The calculation of statistics for the fixed part was developed according to SAS Proc Mixed Theory (see reference). Author(s)Alexandra Kuznetsova <alku@dtu.dk>, Per Bruun Brockhoff, Rune Haubo Bojesen Christensen ReferencesSAS Technical Report R-101 1978 Tests of Hypotheses in Fixed-Effects Linear Models Copyright (C) (SAS Institute Inc., Cary, NC, USA) Goodnight, J.H. 1976 General Linear Models Procedure (S.A.S. Institute, Inc.) Schaalje G.B., McBride J.B., Fellingham G.W. 2002 Adequacy of approximations to distributions of test Statistics in complex mixed linear models Examples## import lmerTest package library(lmerTest) ## an object of class merModLmerTest m <- lmer(Informed.liking ~ Gender+Information+Product +(1|Consumer), data=ham) ## gives summary of lmer object. The same as of class merMod but with ## additional p-values calculated based on Satterthwate's approximations summary(m) ## anova table the same as of class merMod but with additional F statistics and ## and denominator degrees of freedom and ## p-values calculated based on Satterthwaite's approximations anova(m) ## anova table the same as of class merMod but with additional F statistics and ## denominator degrees of freedom and ## p-values calculated based on Kenward-Roger's approximations ## Not run: if(requireNamespace("pbkrtest", quietly = TRUE)) anova(m, ddf = "Kenward-Roger") ## End(Not run) ## anova table of class merMod anova(m, ddf="lme4") ## backward elimination of non-significant effects of model m st <- step(m) plot(st) Results |
||||||||||||||||
|