Reproducible Code and Data Repository: Design-Aware Predictive and Causal Modeling of Cardiovascular Risk in Chronic Kidney Disease Using Penalized and Double Machine Learning Approaches
Description
Description
This repository contains the data and code necessary to reproduce the main results of the study. The paper proposes a unified framework integrating survey-weighted penalized prediction (LASSO), Double/Debiased Machine Learning (DML), Two-Stage Residual Inclusion (2SRI), and design-consistent bootstrap inference.
Repository Structure
/data
ckd_survey_sim.csv
simulation_metrics.csv
metrics_all_sim.csv
stability_sel_prob.csv
/code
SimulacionGeneral.R
Empirical Study.R
/docs
README.docx
Requirements
R version 4.3 or higher with the following packages:
survey, glmnet, dplyr, tidyr, ggplot2, haven, purrr, gridExtra
Reproducibility Guide
Step 1 – Simulation:
source('code/SimulacionGeneral.R')
Step 2 – Empirical analysis:
source('code/Empirical Study.R')
Data Availability
Simulated datasets are included. The ENS 2016–2017 dataset is not redistributed and must be obtained from official sources (MINSAL).
Methodological Notes
Survey design uses the survey package. Penalized models use glmnet. DML uses cross-fitting at PSU level. 2SRI addresses endogeneity. Metrics include weighted AUC and Brier score.
Disclaimer
Simulated data are synthetic. ENS variable names may vary. Adjustments may be required.
Contact
Fernando Rojas
fernando.rojas@uv.cl
License
Creative Commons Attribution (CC BY)
Files
ckd_survey_sim.csv
Files
(399.3 kB)
| Name | Size | Download all |
|---|---|---|
|
md5:26989164e0ef33a34e247db721407414
|
274.2 kB | Preview Download |
|
md5:295944238816b1b2b3b93641bde486ef
|
16.1 kB | Download |
|
md5:624ecfcd7230d31434fea877edad185b
|
253 Bytes | Preview Download |
|
md5:d30d5a40bc74bc442496ec62657d18ec
|
37.6 kB | Download |
|
md5:9c1f08cf213e65bcaca83dfbb5ac7a71
|
68.5 kB | Download |
|
md5:6b2e3db3425a40227787cc8cdc67aaa6
|
464 Bytes | Preview Download |
|
md5:3699617566251379a23bee75c8018831
|
2.2 kB | Preview Download |