statspai.censoring¶
censoring ¶
Inverse probability of censoring / treatment weighting primitives.
IPCWResult
dataclass
¶
Result of an IPCW fit.
Attributes:
| Name | Type | Description |
|---|---|---|
weights |
ndarray
|
Per-observation IPC weights (uncensored obs only; censored rows receive weight 0 by convention but are returned for alignment). |
stabilized |
bool
|
Whether stabilized weights are reported. |
summary_stats |
dict
|
Basic diagnostics — mean, max, share above common thresholds. |
method |
str
|
Nuisance model used for the censoring hazard. |