
Last chance! 50% off unlimited learning
Sale ends in
merMod
-objects) that have been fitted with the
\href{https://CRAN.R-project.org/package=#1}{\pkg{#1}}lme4lme4-package.
merMod_p(x, p.kr = TRUE)
merMod
-object).TRUE
, the computation of p-values is based on
conditional F-tests with Kenward-Roger approximation for the df (see
'Details').lmerMod
-objects), the computation of
p-values (if p.kr = TRUE
) is based on conditional F-tests
with Kenward-Roger approximation for the df, using the
\href{https://CRAN.R-project.org/package=#1}{\pkg{#1}}pbkrtestpbkrtest-package. If pbkrtest is not available or
p.kr = FALSE
, or if x
is a glmerMod
-object,
computation of p-values is based on normal-distribution assumption,
treating the t-statistics as Wald z-statistics.
If p-values already have been computed (e.g. for merModLmerTest
)-objects
from the \href{https://CRAN.R-project.org/package=#1}{\pkg{#1}}lmerTestlmerTest-package), these will be returned.
library(lme4)
# fit model
fit <- lmer(Reaction ~ Days + (Days | Subject), data = sleepstudy)
merMod_p(fit)
merMod_p(fit, p.kr = FALSE)
Run the code above in your browser using DataLab