Skip to contents

Fitting

One interface over the survival stack.

survestimand()
Fit a time-to-event model
sest_fit()
Represent a fitted survival model
predict.sest_fit
Predict from the raw backend fit
sest_tidy()
Tidy a fitted model into a coefficient table
sest_curve()
Predict survival curves for a fit

Decision-relevant estimands

The quantities a decision turns on.

sest_rmst()
Compute the restricted mean survival time
sest_cuminc()
Compute cumulative incidence for competing risks

Arm contrasts and tests

Effects of assignment, competing risks and the trial’s tests.

sest_contrast()
Contrast survival and restricted mean survival between arms
sest_cr_contrast()
Contrast cumulative incidence and time lost to a cause between arms
sest_pseudo()
Pseudo-observation regression for an arm contrast
sest_logrank()
Log-rank test, optionally stratified
sest_ph_check()
Check proportional hazards for a Cox fit

Piecewise-exponential models

From a Poisson layout to standardised survival quantities.

sest_split()
Split follow-up into intervals for a piecewise-exponential Poisson fit
sest_from_hazard_draws()
Standardised survival quantities from draws of piecewise-exponential hazards

Simulation

Planted data with known truths.

sest_simulate()
Simulate recurrence and death with known causal truths

Model comparison and scoring

sest_ic()
Compare fits by AIC and BIC
sest_stack()
Stack several event types per subject for a marginal Cox model
sest_score()
Score a fit's predictions
sest_power()
Assess a fit's small-sample power (events per variable)

The method registry

The extension point and its contract.

sest_register()
Register a survival method
sest_methods()
List the registered methods
sest_contract()
Describe the registry conformance contract
sest_validate_method()
Validate a registered method against the contract

Composition

Emission to the ensemble-manifest contract.

as_orchestra_manifest.survestimand
Emit survestimand results as orchestra manifests
as_sest_manifest()
Emit an ensemble manifest from a fitted model
sest_manifest()
Represent an ensemble-manifest emission

Refusals

The typed result returned when a method declines to answer.

sest_refusal()
A classed refusal from the small-sample power gate
is_sest_refusal()
Is an object a survestimand power-gate refusal?