Appendix material for Unprofitability project.
Sherri Rose, Savannah Bergquist, and Tim Layton (2017). Computational health economics for identification of unprofitable health care enrollees. Biostatistics, doi:10.1093/biostatistics/kxx012.
unprofitability_SL.R and unprofitability_CV.R contain the code used to run the main analyses (using proprietary data)
unprofitability_SL_sim.R and unprofitability_CV_sim.R contain the same code used to run analyses on the simulated data
df_sim.csv and df_sim_250.csv contain simulated data sets (2,006,126 and 250,000 observations, respectively)