Learn R Programming

parameters (version 0.2.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", ...)

# S3 method for glmmTMB p_value(model, component = c("all", "conditional", "zi", "zero_inflated"), ...)

# S3 method for MixMod p_value(model, component = c("all", "conditional", "zi", "zero_inflated"), ...)

Arguments

model

A statistical model.

...

Arguments passed to or from other methods.

method

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

component

Should all parameters, parameters for the conditional model, or for the zero-inflated part of the model be returned? Applies to models with zero-inflated component. component may be one of "conditional", "zi", "zero-inflated" or "all" (default). May be abbreviated.

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