# Guide to OSF repository
The simulation scripts are based on an older version of minorbsem, precisely, version 0.2.4. More recent versions of minorbsem no longer perform meta-analytic SEM. These features have been transferred to the [bayesianmasem](https://github.com/jamesuanhoro/bayesianmasem/) package.
You can install minorbsem version 0.2.4 using:
`remotes::install_github("jamesuanhoro/minorbsem@v0.2.4")`
The Digman97 example makes use of the `bayesianmasem` package. This package includes options for analysis of both covariance and correlation structures.
Files & folders:
- `main_simulation/`: Main simulation folder
- `sim_03.R`: Main simulation script
- `sim_03_adhoc.R`: Main simulation script for ad-hoc approach
- `sim_03_process.R`: Process main simulation results and create figures 1-3 and A1 in paper
- `sim_03_explain.R`: Create Figure 4 in paper
- `correlation_simulation/`: Correlation matrices simulation folder
- `sim_03_corr_dep.R`: Simulation script
- `sim_03_corr_dep_process.R`: Process results to create figures C1-C4
- `sbc_study/`: SBC study folder
- `sbc_digman97.R`: Simulation script
- `meta_cfa_resid_sbc.stan`: Stan script
- `sbc_digman97_priors.R`: Diagram of priors, Figure B1
- `sbc_digman97_process.R`: Process SBC results, create figures B2-B4
- `ex_digman.R`: Digman97 analysis example