get_wide_data | R Documentation |
This helper function provides a simple way to retrieve the
widened data from a fitted dpm()
object.
get_wide_data(model)
model |
A |
A data.frame
with input data transformed from "long" to "wide"
format, with just one row per person/entity. Internally, this is
generated by calling panelr::widen_panel()
after some
preprocessing.
data("WageData", package = "panelr")
wages <- panel_data(WageData, id = id, wave = t)
fit <- dpm(wks ~ pre(lag(union)) + lag(lwage), data = wages)
get_wide_data(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.