Tidying methods for "gamlss" objects from the gamlss package.
# S3 method for gamlss
tidy(x, quick = FALSE, conf.int = FALSE, conf.level = 0.95, ...)
A "gamlss" object
Whether to perform a fast version, and return only the coefficients
whether to return confidence intervals
confidence level for CI
arguments passed to confint.gamlss
All tidying methods return a data.frame without rownames, whose structure depends on the method chosen. A tibble with one row for each coefficient, containing columns:
type of coefficient being estimated: mu
, sigma
, nu
, or tau
term in the model being estimated and tested
estimated coefficient
standard error
t-statistic
two-sided p-value
if (requireNamespace("gamlss", quietly = TRUE) &&
requireNamespace("gamlss.data", quietly = TRUE)) {
data(abdom, package="gamlss.data")
if (FALSE) {
mod <- gamlss(y~pb(x), sigma.fo=~pb(x), family=BCT,
data=abdom, method=mixed(1,20))
}
## load stored object
mod <- readRDS(system.file("extdata", "gamlss_example.rds",
package="broom.mixed"))
tidy(mod)
}