survestimand - Survival Estimands from Many Models Through One Interface
Fits time-to-event models through one interface: Cox
proportional hazards and Kaplan-Meier from 'survival',
parametric (accelerated failure time and proportional hazards),
spline and cure models from 'flexsurv' and 'flexsurvcure',
shared frailty from 'coxme', interval-censored regression from
'icenReg', competing-risks models, and the Andersen-Gill model
for recurrent events. Every fit returns one object type with
the same coefficient, tidying and summary methods; survival
curves and restricted means are computed for the parametric,
spline, cure, Cox and Kaplan-Meier fits. New estimators are
added through a method registry. From a fit it estimates the
quantities a randomised comparison reports: survival and
restricted mean survival time (RMST) by arm and their
differences, standardised over the sample or from Kaplan-Meier,
with delta-method or bootstrap intervals; cumulative incidence
of a cause and time lost to it; and pseudo-observation
regression (Andersen, Hansen and Klein 2004
<doi:10.1007/s10985-004-4771-0>). It also provides the log-rank
test, the test of proportional hazards (Grambsch and Therneau
1994 <doi:10.1093/biomet/81.3.515>), a piecewise-exponential
layout whose hazard draws give standardised survival
quantities, simulated illness-death data with known true
values, information criteria, and censoring-weighted prediction
scores. Fits with too few events per predictor raise a warning
or a typed refusal.