powered by
This helper function provides a simple way to retrieve the lavaan model syntax from a fitted dpm() object.
dpm()
get_syntax(model, print = TRUE)
Returns a string with the lavaan model syntax for model. If print is TRUE, it is printed to the console as well.
model
print
A dpm object.
dpm
Print the syntax to the console so it is formatted properly? Default is TRUE.
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)
Run the code above in your browser using DataLab