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:

  1. Cohort identification using diagnosis (ICD-10-CM), procedure (CPT/HCPCS), and drug (NDC) code lists
  2. Medication adherence measurement (PDC and MPR)
  3. Propensity score estimation and balance diagnostics
  4. 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.

Installs
5
GitHub Stars
11
First Seen
Jul 9, 2026
rwd-cohort-analysis — awslabs/hcls-agent-skills