DamonCharlesRoberts / imputation-with-random-forests

Replication code for "Connecting Leaves to the Forest" academic project.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Replication Code: Connecting Leaves to the Forest

GitHub last commit GitHub issues GitHub pull requests


Academic project examining the utility of using Random Forest models for multiple imputation with chained equations in political science.

Code

  • anes_cleaning.py: Python script to clean the 2020 ANES for the Application section of the paper
  • anes_imputation.R: R Script that performs the MI and RF-MICE imputation procedures on the 2020 ANES data.
  • anes_models.R: R Script that performs the main models and t-tests using LWD, MI, and RF-MICE procedures on 2020 ANES data.
  • introduce_mar.R: R Script that performs the amputation for the simulated data.
  • simulated_imputation.R: R Script that performs the imputation procedures on the amputed simulated data.
  • simulated_models.R: R Script that performs the main models and data exploration on the simulated data.
  • simulation_data.R: R Script that generates the simulated data.

About

Replication code for "Connecting Leaves to the Forest" academic project.


Languages

Language:R 89.2%Language:Python 10.8%