rwd-cohort-analysis
Installation
SKILL.md
Real-World Data Cohort Analysis Pipeline
Overview
This skill encodes a reproducible pipeline for analyzing administrative claims or EHR data to estimate comparative treatment effects. It covers the full workflow from raw claims tables to adjusted survival estimates:
- Cohort identification using diagnosis (ICD-10-CM), procedure (CPT/HCPCS), and drug (NDC) code lists
- Medication adherence measurement (PDC and MPR)
- Propensity score estimation and balance diagnostics
- Kaplan-Meier curves and Cox proportional hazards regression
Code snippets use Python (pandas, scikit-learn, lifelines) and R (MatchIt, cobalt, survival, survminer). The user is responsible for data access, IRB/privacy compliance, and clinical code-list validation.