You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
2.6 KiB
Markdown

# Simulations
12 months ago
7 months ago
This repository contains all code files related to our ROSALI/Resiuals RCT simulation project. In order to save disk space, data files are not stored on this server and are instead available on https://osf.io.
12 months ago
7 months ago
## File Structure
12 months ago
12 months ago
```
📦 simul_these
├─ catalogue.md - List and description of scenarios
10 months ago
├─ 🗂️ Analysis - ANALYSIS RESULTS
12 months ago
├─ 🗂️ Data - GENERATED DATASETS
│  ├─ 🗂️ DIF - DATASETS WITH DIF
│  └─ 🗂️ noDIF - DATASETS WITHOUT DIF
12 months ago
├─ 🗂️ Modules - R AND STATA MODULES
│  ├─ 🗂️ rosali_custom - DATASETS WITH DIF
12 months ago
  ├─ simirt.do
  └─ simirt.R
7 months ago
├─ 🗂️ RProject - R SCRIPTS FOR VARIOUS TASKS
12 months ago
└─ 🗂️ Scripts - R AND STATA SCRIPTS
10 months ago
├─ 🗂️ Analysis - PCM ANALYSIS SCRIPTS
7 months ago
└─ 🗂 Data_generation - SIMULATION SCENARIO SCRIPTS
12 months ago
   ├─ 🗂️ DIF
   └─ 🗂️ noDIF
12 months ago
```
12 months ago
7 months ago
## Naming conventions
12 months ago
7 months ago
### Initial Datasets
7 months ago
**XX_N** - Scenario XX / N individuals per group
7 months ago
### Analyzed Datasets
**noDIF / XX_N.csv** - Analysis for scenario XX_N by PCM __without__ accounting for DIF
**DIF / XX_N.xls** - Analysis for scenario XX_N by PCM __with__ DIF accounted for
**ROSALI-DIF / XX_N_original.xls** - Analysis for scenario XX_N by PCM __with__ DIF accounted for after detection by ROSALI
**RESIDUALS / XX_N_original.xls** - Analysis for scenario XX_N by PCM __with__ DIF accounted for after detection by Andrich & Hagquist's residuals method
## Reproduction
7 months ago
1. Run **/Scripts/Data_generation/NoDIF/scenarios_noDIF_baseline.do** to simulate no DIF data
2. Run files in 🗂️ **/Scripts/Data_generation/DIF/** to simulate DIF data
3. Run **/RProject/Scripts/Analysis/pcm_nodif.R** to analyze without accounting for DIF
4. Run files in 🗂️ **/Scripts/Analysis/DIF/** to analyze while accounting for DIF
5. Run **/Scripts/Analysis/DIF-ROSALI/pcm_dif_rosali.do** to analyze data after accounting for DIF as detected by ROSALI
6. Run **/RProject/Scripts/Analysis/resali_analysis.R** to perform residuals DIF detection and prepare data for PCM analysis.
7. Run **/Scripts/Analysis/DIF-RESIDUALS/pcm_dif_residus.do** to analyze data after accounting for DIF as detected by the residuals method
8. Run **/RProject/Scripts/Analysis/aggregation.R** to compile and visualize results
**OR**
1. Run **autorun.sh** (by default, will take multiple weeks to run. Please modify to run in parrallel if necessary)