Learn R Programming

dpm (version 1.2.0)

lav_summary: lavaan-style summary for dpm objects

Description

This is just a quick way to get lavaan's summary instead the more terse summary designed for dpm objects.

Usage

lav_summary(x, ...)

Value

Returns a lavaan.summary object which contains various model data described in ?lavaan::summary,lavaan-method.

Arguments

x

The dpm object

...

Other arguments to the lavaan function.

Examples

Run this code

# Load example data
data("WageData", package = "panelr")
# Convert data to panel_data format for ease of use
wages <- panel_data(WageData, id = id, wave = t)

fit <- dpm(wks ~ pre(lag(union)) + lag(lwage) | ed, data = wages)
lav_summary(fit)

Run the code above in your browser using DataLab