A tidier for models generated with multgee::nomLORgee()
or multgee::ordLORgee()
.
Term names will be updated to be consistent with generic models. The original
term names are preserved in an "original_term"
column.
tidy_multgee(x, conf.int = TRUE, conf.level = 0.95, ...)
(LORgee
)
A multgee::nomLORgee()
or a multgee::ordLORgee()
model.
(logical
)
Whether or not to include a confidence interval in the tidied output.
(numeric
)
The confidence level to use for the confidence interval (between 0
ans 1
).
Additional parameters passed to parameters::model_parameters()
.
To be noted, for multgee::nomLORgee()
, the baseline y
category is the
latest modality of y
.
Other custom_tieders:
tidy_broom()
,
tidy_parameters()
,
tidy_svy_vglm()
,
tidy_vgam()
,
tidy_with_broom_or_parameters()
,
tidy_zeroinfl()
# \donttest{
library(multgee)
#> Loading required package: gnm
h <- housing
h$status <- factor(
h$y,
labels = c("street", "community", "independant")
)
mod <- multgee::nomLORgee(
status ~ factor(time) * sec,
data = h,
id = id,
repeated = time,
)
#> Error in fitmm(data.model, marpars, homogeneous, NULL, add): gnm did not converge algorithm
mod |> tidy_multgee()
#> Error: object 'mod' not found
mod2 <- ordLORgee(
formula = y ~ factor(time) + factor(trt) + factor(baseline),
data = multgee::arthritis,
id = id,
repeated = time,
LORstr = "uniform"
)
#> Error in fitLORgee(Y, X_mat, coeffs, ncategories, id, repeated, offset, link, LORterm, marpars, ipfp.ctrl, control, IM, LORem = LORem, LORstr = LORstr, add): Robust covariance matrix is not positive definite
mod2 |> tidy_multgee()
#> Error: object 'mod2' not found
# }