tidy.wbm | R Documentation |
wbm
modelspanelr
provides methods to access wbm
data in a tidy format
## S3 method for class 'wbm'
tidy(
x,
conf.int = FALSE,
conf.level = 0.95,
effects = c("fixed", "ran_pars"),
conf.method = "Wald",
ran_prefix = NULL,
...
)
## S3 method for class 'wbm'
glance(x, ...)
## S3 method for class 'summ.wbm'
glance(x, ...)
## S3 method for class 'summ.wbm'
tidy(x, ...)
x |
An object of class |
conf.int |
whether to include a confidence interval |
conf.level |
confidence level for CI |
effects |
A character vector including one or more of "fixed"
(fixed-effect parameters); "ran_pars" (variances and covariances or
standard deviations and correlations of random effect terms);
"ran_vals" (conditional modes/BLUPs/latent variable estimates); or
"ran_coefs" (predicted parameter values for each group, as returned by
|
conf.method |
method for computing confidence intervals (see |
ran_prefix |
a length-2 character vector specifying the strings to use as prefixes for self- (variance/standard deviation) and cross- (covariance/correlation) random effects terms |
... |
Additional arguments (passed to |
data("WageData")
wages <- panel_data(WageData, id = id, wave = t)
model <- wbm(lwage ~ lag(union) + wks, data = wages)
if (requireNamespace("broom.mixed")) {
broom.mixed::tidy(model)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.