get_syntax | R Documentation |
This helper function provides a simple way to retrieve the
lavaan model syntax from a fitted dpm()
object.
get_syntax(model, print = TRUE)
model |
A |
print |
Print the syntax to the console so it is formatted properly? Default is TRUE. |
Returns a string with the lavaan model syntax for model
. If print
is
TRUE, it is printed to the console as well.
data("WageData", package = "panelr")
wages <- panel_data(WageData, id = id, wave = t)
fit <- dpm(wks ~ pre(lag(union)) + lag(lwage), data = wages)
get_syntax(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.