A tidier for models generated with pscl::zeroinfl()
or pscl::hurdle()
.
Term names will be updated to be consistent with generic models. The original
term names are preserved in an "original_term"
column.
Arguments
- x
(
zeroinfl
orhurdle
)
Apscl::zeroinfl()
or apscl::hurdle()
model.- conf.int
(
logical
)
Whether or not to include a confidence interval in the tidied output.- conf.level
(
numeric
)
The confidence level to use for the confidence interval (between0
ans1
).- component
(
string
)NULL
or one of"all"
,"conditional"
,"zi"
, or"zero_inflated"
.- ...
Additional parameters passed to
parameters::model_parameters()
.
See also
Other custom_tieders:
tidy_broom()
,
tidy_multgee()
,
tidy_parameters()
,
tidy_with_broom_or_parameters()
Examples
if (FALSE) { # interactive()
if (.assert_package("pscl", boolean = TRUE)) {
library(pscl)
mod <- zeroinfl(
art ~ fem + mar + phd,
data = pscl::bioChemists
)
mod |> tidy_zeroinfl(exponentiate = TRUE)
}
}