Code used for the empirical example and simulation study in the paper "Mixture Multigroup Structural Equation Modeling for Ordinal Data". A quick description of each file is listed below:
Two files are included:
PISA Analysis: R script for the analysis of the PISA data (measurement invariance, mmgsem, etc.)
individualism: Excel spreadsheet containing the individualism scores from Hofstede (2001).
Hofstede, G. (2001). Culture’s consequences Comparing values, behaviors,institutions, and organizations across nations (2nd). Sage Publications.
Due to GitHub's storage limitations, we were unable to include the PISA survey data file. We can share it at request, or it can be (freely) downloaded from: https://www.oecd.org/en/data/datasets/pisa-2018-database.html
Divided into two different folders with the files for each Simulation Study. Each folder contains the main simulation function (parallel_sim and do_sim), data generation function (DataGeneration), and analyses functions (analysis_mm, analysis_sm, and analysis_ms).
All data and results files are stored locally (they are too large to include in this GitHub repository).