Description Usage Arguments Details Value Author(s) See Also Examples
Summaries of Linear Mixed Models with coefficient tables including t-tests and p-values using Satterthwaites's or Kenward-Roger's methods for degrees-of-freedom and t-statistics.
1 2 |
object |
an lmerModLmerTest object. |
... |
additional arguments passed on to |
ddf |
the method for computing the degrees of freedom and
t-statistics. |
The returned object is of class
c("summary.lmerModLmerTest", "summary.merMod")
utilizing print
,
coef
and other methods defined for summary.merMod
objects.
The "Kenward-Roger"
method use methods from the pbkrtest package internally
to compute t-statistics and associated degrees-of-freedom.
A summary object with a coefficient table (a matrix
) including
t-values and p-values. The coefficient table can be extracted with
coef(summary(<my-model>))
.
Rune Haubo B. Christensen and Alexandra Kuznetsova
contest1D
for one degree-of-freedom contrast tests
and KRmodcomp
for Kenward-Roger F-tests.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # Fit example model:
data("sleepstudy", package="lme4")
fm <- lmer(Reaction ~ Days + (1|Subject) + (0+Days|Subject), sleepstudy)
# Get model summary:
summary(fm) # Satterthwaite df and t-tests
# Extract coefficient table:
coef(summary(fm))
# Use the Kenward-Roger method
if(requireNamespace("pbkrtest", quietly = TRUE))
summary(fm, ddf="Kenward-Roger")
# The lme4-summary table:
summary(fm, ddf="lme4") # same as summary(as(fm, "lmerMod"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.