Code for manuscript: "The covariate-adjusted residual estimator and its use in both randomized trials and observational settings"
To re-run the analysis for this paper follow these steps:
- Run the script code/CARE-installation.R. This will install all of the packages needed to run the code.
- Run the script code/CARE-simulation.R. This runs the simulation study presented in the manuscript. We also provide the output data from our run of the simulation study in data/simulation-output/sim-output.rds.
- Run the script manuscript/CARE-figures.Rnw to create the figures for the manuscript.
- Run the script manuscript/CARE-manuscript.Rnw to create the manuscript.