lcadistaloutcomeipw
Simulation package - Latent class analysis with distal outcome using inverse propensity weighting
Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (8.0%) to scientific vocabulary
Repository
Simulation package - Latent class analysis with distal outcome using inverse propensity weighting
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
Causal Latent Class Analysis with Distal Outcomes: A Modified Three-Step Method Using Inverse Propensity Weighting
Authors
- Tra T. Le | Tilburg University (First author)
- Dr. Felix Clouth | Tilburg University (First author)
- Prof. dr. Jeroen Vermunt | Tilburg University
Description
This repository contains the code to reproduce all the results for the paper "Causal Latent Class Analysis with Distal Outcomes: A Modified Three-Step Method Using Inverse Propensity Weighting"
Exemplary Data Analysis
The steps for the exemplary data analysis are as follows
- Run create_exemplarydata.lgs to generate a synthetic data set 'exemplary.sav'.
- Run step1model.lgs and save the posterior probabilities in 'classification.txt'
- Run 1-stepmodel.lgs and save the posterior probabilities and classification results in 'classification2.txt'
- Use 'classification.txt' and step3model.lgs
- Run step3-adjusted (ML method and proportional assignment) to get propensity scores saved in 'propensity1.txt'
- Run step3-unadjusted (no correction method and modal assignment) to get propensity scores saved in 'propensity2.txt'
- Run schuler.lgs with 'propensity2.txt'
- Run yamaguchi.lgs with 'classification2.txt'
- Run braive-tra.lgs with 'propensity1.txt'
Simulation study in batch mode
- The GenData.lgs file was used to generate the data set ‘data.sav’.
- The Step1OneStep.lgs file with the simulated data set ‘data.sav’ were used to:
- run Step 1 model (estimate LC model with only the response indicators) and get the posterior probabilities in ‘data0.sav’.
- run One-step model (estimate LC model with the response indicators and the confounders) and get the posterior probabilities and classification results in ‘data1.sav’.
- The Step3.lgs file with the posterior probabilities ‘data0.sav’ were used to:
- run the adjusted Step 3 model (ML correction method and proportional assignment) to get the propensity scores saved in ‘data2.sav’.
- run the standard Step 3 model (no correction method) to get the propensity scores saved in ‘data3.sav’.
- The Schuler.lgs file with ‘data3.sav’ data set were used to run the final step of Schuler et al. (2014) method.
- The Yama.lgs file with ‘data1.sav’ data set were used to run the final step of Yamaguchi (2015) method.
- The BrayTraNaive.lgs file with ‘data2.sav’ data set were used to run the final step of Bray et al. (2019), our method, and the naive method.
We used R to generate the above six LatentGOLD syntaxes and run them in batch mode in a loop for 500 replications as follows:
"~\ LatentGOLD6 .0\ lg60 " GenData.lgs Step1.lgs Step3.lgs Schuler.lgs Yamaguchi.lgs Bray_Tra_Naive.lgs / b / r 500
R Codes
The R scripts were provided to generate LatentGOLD syntax files, read the results from LatentGOLD, and create graphs and tables.
Empirical Application
The folder contains the LatentGOLD files to analyze an empirical dataset from the LISS panel and the R script to generate the figures and tables in the paper.
Owner
- Name: Tra Le
- Login: trale97
- Kind: user
- Repositories: 1
- Profile: https://github.com/trale97
Research Master in Methodology and Statistics at Tilburg University. Interested in causal inference, statistical learning, and latent variable modeling.
Citation (CITATION.cff)
cff-version: 1.2.0 message: "If you use this software, please cite it as below." authors: - family-names: "Le" given-names: "Tra" title: "LCA with distal outcomes using IPW" date-released: 2022-05-31 url: "https://github.com/trale97/LCAdistaloutcomeIPW"