Learn R Programming

parameters (version 0.1.0)

p_value: p-values

Description

This function attempts to return, or compute, p-values of a model's parameters. The nature of the p-values is different depending on the model:

  • Mixed models (lme4): TO BE IMPROVED.

Usage

p_value(model, ...)

# S3 method for lmerMod p_value(model, method = "wald", ...)

Arguments

model

A statistical model.

...

Arguments passed to or from other methods.

method

For mixed models, can be "wald" (default) or "kenward".

Value

The p-values.

Examples

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

Run the code above in your browser using DataLab