p-values for Models with Zero-Inflation
This function attempts to return, or compute, p-values of hurdle and zero-inflated models.
## S3 method for class 'zcpglm' p_value(model, component = c("all", "conditional", "zi", "zero_inflated"), ...) ## S3 method for class 'zeroinfl' p_value( model, component = c("all", "conditional", "zi", "zero_inflated"), method = NULL, verbose = TRUE, ... )
model |
A statistical model. |
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. |
... |
Arguments passed down to |
method |
If |
verbose |
Toggle warnings and messages. |
A data frame with at least two columns: the parameter names and the p-values. Depending on the model, may also include columns for model components etc.
if (require("pscl", quietly = TRUE)) { data("bioChemists") model <- zeroinfl(art ~ fem + mar + kid5 | kid5 + phd, data = bioChemists) p_value(model) p_value(model, component = "zi") }
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.