gamlss_tidiers | R Documentation |
Tidying methods for "gamlss" objects from the gamlss package.
## S3 method for class 'gamlss'
tidy(x, quick = FALSE, conf.int = FALSE, conf.level = 0.95, ...)
x |
A "gamlss" object |
quick |
Whether to perform a fast version, and return only the coefficients |
conf.int |
whether to return confidence intervals |
conf.level |
confidence level for CI |
... |
arguments passed to |
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: |
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 |
if (requireNamespace("gamlss", quietly = TRUE) &&
requireNamespace("gamlss.data", quietly = TRUE)) {
data(abdom, package="gamlss.data")
## Not run:
mod <- gamlss(y~pb(x), sigma.fo=~pb(x), family=BCT,
data=abdom, method=mixed(1,20))
## End(Not run)
## load stored object
mod <- readRDS(system.file("extdata", "gamlss_example.rds",
package="broom.mixed"))
tidy(mod)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.