wbm_tidiers: Tidy methods for 'wbm' models

Description Usage Arguments Examples

Description

panelr provides methods to access wbm data in a tidy format

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## 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, ...)

Arguments

x

An object of class merMod, such as those from lmer, glmer, or nlmer

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 coef.merMod.

conf.method

method for computing confidence intervals (see lme4::confint.merMod)

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 confint.merMod for tidy; augment_columns for augment; ignored for glance)

Examples

1
2
3
4
5
6
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)
}

panelr documentation built on Oct. 23, 2020, 8:26 p.m.