Package: survestimand 0.1.0

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.

Authors:Max Moldovan [aut, cre]

survestimand_0.1.0.tar.gz
survestimand_0.1.0.zip(r-4.7-any)survestimand_0.1.0.zip(r-4.6-any)survestimand_0.1.0.zip(r-4.5-any)
survestimand_0.1.0.tgz(r-4.6-any)survestimand_0.1.0.tgz(r-4.5-any)
survestimand_0.1.0.tar.gz(r-4.7-any)survestimand_0.1.0.tar.gz(r-4.6-any)
survestimand_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
survestimand/json (API)

# Install 'survestimand' in R:
install.packages('survestimand', repos = c('https://max578.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/max578/survestimand/issues

Pkgdown/docs site:https://max578.github.io

On CRAN:

Conda:

3.90 score 26 exports 4 dependencies

Last updated from:0ce3bb09f1 (on main). Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK214
source / vignettesOK257
linux-releaseOK174
macos-releaseOK227
macos-oldrelOK264
windows-develOK245
windows-releaseOK172
windows-oldrelOK252
wasm-releaseOK95

Exports:as_sest_manifestis_sest_refusalsest_contractsest_contrastsest_cr_contrastsest_cumincsest_curvesest_fitsest_from_hazard_drawssest_icsest_logranksest_manifestsest_methodssest_ph_checksest_powersest_pseudosest_refusalsest_registersest_rmstsest_scoresest_simulatesest_splitsest_stacksest_tidysest_validate_methodsurvestimand

Dependencies:latticeMatrixS7survival

Getting started with survestimand
What can it fit? | A first fit | Switching method, same interface | The small-sample gate | Visualising a fit | Competing risks | Cumulative incidence | Restricted mean survival time | Adding a method | References

Last update: 2026-12-04
Started: 2026-12-03

Arm contrasts, competing risks and manifests: a worked example
The randomised comparison | Log-rank test and proportional hazards | Survival and restricted mean survival by arm | Which parametric model fits best? | A piecewise-exponential model | Competing risks | Checking an analysis against planted truths | Results as orchestra manifests

Last update: 2026-12-03
Started: 2026-12-02

Readme and manuals

Help Manual

Help pageTopics
Emit survestimand results as orchestra manifestsas_orchestra_manifest.survestimand
Emit an ensemble manifest from a fitted modelas_sest_manifest
Is an object a survestimand power-gate refusal?is_sest_refusal
Predict from the raw backend fitpredict.sest_fit
Describe the registry conformance contractsest_contract
Contrast survival and restricted mean survival between armssest_contrast
Contrast cumulative incidence and time lost to a cause between armssest_cr_contrast
Compute cumulative incidence for competing riskssest_cuminc
Predict survival curves for a fitsest_curve
Represent a fitted survival modelsest_fit
Standardised survival quantities from draws of piecewise-exponential hazardssest_from_hazard_draws
Compare fits by AIC and BICsest_ic
Log-rank test, optionally stratifiedsest_logrank
Represent an ensemble-manifest emissionsest_manifest
List the registered methodssest_methods
Check proportional hazards for a Cox fitsest_ph_check
Assess a fit's small-sample power (events per variable)sest_power
Pseudo-observation regression for an arm contrastsest_pseudo
A classed refusal from the small-sample power gatesest_refusal
Register a survival methodsest_register
Compute the restricted mean survival timesest_rmst
Score a fit's predictionssest_score
Simulate recurrence and death with known causal truthssest_simulate
Split follow-up into intervals for a piecewise-exponential Poisson fitsest_split
Stack several event types per subject for a marginal Cox modelsest_stack
Tidy a fitted model into a coefficient tablesest_tidy
Validate a registered method against the contractsest_validate_method
Fit a time-to-event modelsurvestimand