Tidying methods for "gamlss" objects from the gamlss package.
Usage
# S3 method for class 'gamlss'
tidy(x, quick = FALSE, conf.int = FALSE, conf.level = 0.95, ...)Value
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:
- parameter
type of coefficient being estimated:
mu,sigma,nu, ortau- term
term in the model being estimated and tested
- estimate
estimated coefficient
- std.error
standard error
- statistic
t-statistic
- p.value
two-sided p-value
Examples
if (requireNamespace("gamlss", quietly = TRUE) &&
requireNamespace("gamlss.data", quietly = TRUE)) {
data(abdom, package="gamlss.data")
if (FALSE) { # \dontrun{
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)
}
#> # A tibble: 6 × 6
#> parameter term estimate std.error statistic p.value
#> <chr> <chr> <dbl> <dbl> <dbl> <dbl>
#> 1 mu (Intercept) -64.4 1.33 -48.5 1.89e-210
#> 2 mu pb(x) 10.7 0.0578 185. 0
#> 3 sigma (Intercept) -2.65 0.108 -24.5 8.09e- 93
#> 4 sigma pb(x) -0.0100 0.00378 -2.65 8.29e- 3
#> 5 nu (Intercept) -0.107 0.557 -0.192 8.48e- 1
#> 6 tau (Intercept) 2.49 0.301 8.28 7.77e- 16