Learn R Programming

panelr (version 0.7.8)

formula.wbm: Retrieve model formulas from wbm objects

Description

This S3 method allows you to retrieve the formula used to fit wbm objects.

Usage

# S3 method for wbm
formula(x, raw = FALSE, ...)

Arguments

x

A wbm model.

raw

Return the formula used in the call to lmerMod/glmerMod? Default is FALSE.

...

further arguments passed to or from other methods.

Examples

Run this code
data("WageData")
wages <- panel_data(WageData, id = id, wave = t)
model <- wbm(lwage ~ lag(union) + wks, data = wages)
# Returns the original model formula rather than the one sent to lme4
formula(model)

Run the code above in your browser using DataLab