Description Usage Arguments Details Value Author(s) References See Also Examples

Conventional multiple-group SEM to test measurement invariance. A sequence of chi-squared and chi-squared difference tests will be conducted.

1 | ```
eqMI.semtest(..., output = "both", quiet = FALSE)
``` |

`...` |
The same arguments as for any lavaan model. See |

`output` |
If the function prints out results of covariance structure, mean structure, or both. The value of |

`quiet` |
If |

This is a wrapper around the (now deprecated) `measurementInvariance`

function from the `semTools`

package, with the following default options: `std.lv = FALSE, fit.measures = "default"`

, and `method = "satorra.bentler.2001"`

. See `?semTools::`measurementInvariance-deprecated``

for more information.

A list is returned with:

`LavaanOut`

A sublist in convention.sem. Contains lavann style output and results for each chi-squared and chi-squared difference.

`Mean.part`

A sublist in convention.sem. Contains test statistics and fit measures on invariance tests of mean structure.

`Cov.part`

A sublist in convention.sem. Contains test statistics and fit measures on invariance tests of covariacne structure.

Ge Gabriella Jiang, adapted from original source code written by Yves Rosseel for the lavaan package (later included in the semTools package)

Yuan, K. H., & Chan, W. (2016). Measurement invariance via multigroup SEM: Issues and solutions with chi-square-difference tests. Psychological methods, 21(3), 405-426.

Yves Rosseel (2012). lavaan: An R Package for Structural Equation Modeling. Journal of Statistical Software, 48(2), 1-36.

1 2 3 4 5 6 7 8 9 10 11 12 | ```
data(HolzingerSwineford)
semmodel<-'
L1 =~ V1 + V2 + V3
L2 =~ V4 + V5 + V6
L3 =~ V7 + V8
L4 =~ V9 + V10 + V11
'
## Not run:
run.sem <- eqMI.semtest(model = semmodel, data = HolzingerSwineford,
group = "school", meanstructure = TRUE)
## End(Not run)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.