survey_cox
Fit survey-weighted Cox proportional hazards models to NHANES data, accounting for complex survey design to analyze mortality outcomes.
Instructions
Survey-weighted Cox proportional hazards model (Breslow ties, Binder linearized variance; same estimator as SUDAAN SURVIVAL / R svycoxph). Typical use with include_mortality=True: time='PERMTH_INT' (or PERMTH_EXM), event='MORTSTAT', domain including 'ELIGSTAT == 1'. Categorical predictors must be dummy-coded first with derive_variable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| time | Yes | ||
| event | Yes | ||
| domain | No | ||
| dataset_id | Yes | ||
| predictors | Yes |