Learn R Programming

parameters (version 0.3.0)

dof_kenward: p-values using Kenward-Roger approximation

Description

An approximate F-test based on the Kenward-Roger (1997) approach.

Usage

dof_kenward(model)

p_value_kenward(model, dof = NULL)

se_kenward(model)

Arguments

model

A statistical model.

dof

Degrees of Freedom.

Value

The p-values.

Details

dof_kenward() and se_kenward() are small helper-functions to calculate approximated degrees of freedom and standard errors for model parameters, based on the Kenward-Roger (1997) approach.

References

Kenward, M. G., & Roger, J. H. (1997). Small sample inference for fixed effects from restricted maximum likelihood. Biometrics, 983-997.

Examples

Run this code
# NOT RUN {
library(lme4)
model <- lmer(Petal.Length ~ Sepal.Length + (1 | Species), data = iris)
p_value_kenward(model)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab