Sample statistics as input data

keywords SEM, covariances, correlations, lavaan, SEMLj, jamovi

1.3.0

In this example, we demonstrate how to use a variances-covariances matrix as input data of SEMLj. We show input of SEMLj that is exactly the same for the syntax sub-module and interactive sub-module, the examples applyy to both modules. We focus more on the setup of the data, so the example would not be interpreted as for other cases.

The data

For this example, we use the Holzinger and Swineford dataset, which is included in the lavaan R package. The dataset contains nine variables measured on 331 participants. While the original dataset provides disaggregated data, for the purposes of this example we treat the data as if only sample estimates — such as covariances or correlations — were available, similar to what one might find in published articles or statistical reports.

For the sake of comparison, here are the overall fit indices of a three-factor confirmatory factors analysis, with this structure

visual=~x1+x2+x3
textual=~x4+x5+x6
speed=~x7+x8+x9

Incomplete version, please wait for updates

Comments?

Got comments, issues or spotted a bug? Please open an issue on SEMLj at github or send me an email