powered by
A sample dataset for fitting a path analysis model, with three control variables.
pa_example_3covs
An object of class data.frame with 100 rows and 7 columns.
data.frame
Four variables (x1 to x4), and three control variables (cov1, cov2, cov3), 100 cases.
x1
x4
cov1
cov2
cov3
Sample model to fit (in lavaan::model.syntax notation)
mod <- ' x3 ~ x1 + x2 + cov1 +cov2 + cov3 x4 ~ x1 + x3 + cov1 +cov2 + cov3 '