This GitHub repository contains the materials necessary to to reproduce the simulation study, analyses, visualizations, and tables of the paper "Establishing the Parallels and Differences Between Right-Censored and Missing Covariates". The template provided by the Journal of the American Statistical Association was used in the creation of this repository.
This repository is organized into several sections, each containing the R code necessary to generate simulation data, estimate parameters, and create the figures presented in the paper. The folders are structured as follows:
- 01-Data: Contains all helper functions for simulating data, as well as the simulation data used to create the tables and figures in the paper.
- 02-MEstimate: Includes all helper functions for calculating the parameters of the linear regression model using the geex package [1].
- 03-Simulation-Example: Contains the Example.Rmd, a tutorial that demonstrates how to replicate all the analyses from the published paper. Users can use this tutorial to replicate the analyses using their data.
- docs: This folder includes the necessary files for hosting the Example.Rmd tutorial online link.
For more details on the data simulation process, refer to “Establishing the Parallels and Differences Between Right-Censored and Missing Covariates”. For questions about the tutorial or paper, please contact Jesus Vazquez at @biostat_vazquez
[1] Saul, B.C. and Hudgens, M.G., 2020. The calculus of M-estimation in R with geex. Journal of statistical software, 92(2).