p_value.zcpglm | R Documentation |
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 |
Model component for which parameters should be shown. See
the documentation for your object's class in |
... |
Additional arguments |
method |
Method for computing degrees of freedom for
confidence intervals (CI) and the related p-values. Allowed are following
options (which vary depending on the model class): |
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")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.