model_frame | R Documentation |
This is similar to model.frame, but is designed specifically
for panel_data()
data frames. It's a workhorse in wbm()
but may be useful in scripting use as well.
model_frame(formula, data)
formula |
A formula. Note that to get an individual-level mean with
incomplete data (e.g., panel attrition), you should use |
data |
A |
A panel_data()
frame with only the columns needed to fit
a model as described by the formula.
data("WageData")
wages <- panel_data(WageData, id = id, wave = t)
model_frame(lwage ~ wks + exp, data = wages)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.