Skip to contents

Hazard model

hazard()
Build and optionally fit a hazard model
summary(<hazard>)
Summarize a hazard model
predict(<hazard>)
Predict from a hazard model object
coef(<hazard>)
Extract coefficients from hazard model
vcov(<hazard>)
Extract variance-covariance matrix from hazard model

Multiphase phases

hzr_phase() print(<hzr_phase>)
Specify a single hazard phase
is_hzr_phase()
Test if an object is an hzr_phase
hzr_phase_cumhaz()
Cumulative hazard contribution from a single phase
hzr_phase_hazard()
Instantaneous hazard contribution from a single phase

Variable selection

hzr_stepwise()
Stepwise covariate selection for a parametric hazard model
print(<hzr_stepwise>)
Print method for hzr_stepwise
summary(<hzr_stepwise>)
Summary method for hzr_stepwise
as.data.frame(<hzr_stepwise>)
Coerce an hzr_stepwise result to its selection trace
stepwise_trace()
Extract the captured console trace from an hzr_stepwise fit

Decomposition

hzr_decompos()
Generalized temporal decomposition
hzr_decompos_g3()
Late-phase (G3) temporal decomposition

Datasets

avc
AVC: Atrioventricular Canal Repair
cabgkul
CABGKUL: Primary Isolated Coronary Artery Bypass Grafting (KU Leuven)
omc
OMC: Open Mitral Commissurotomy
tga
TGA: Transposition of the Great Arteries
valves
Valves: Primary Heart Valve Replacement

Migration tools

hzr_argument_mapping()
Legacy HAZARD to TemporalHazard argument mapping

Numerical Primitives

hzr_log1pexp()
Numerically stable log(1 + exp(x))
hzr_log1mexp()
Numerically stable log(1 - exp(-x)) for x > 0
hzr_clamp_prob()
Clamp probabilities away from 0 and 1

Diagnostics

hzr_deciles()
Decile-of-risk calibration
print(<hzr_deciles>)
Print method for hzr_deciles
hzr_gof()
Goodness-of-fit: observed vs. predicted events
print(<hzr_gof>)
Print method for hzr_gof
hzr_kaplan()
Kaplan-Meier survival with exact logit confidence limits
print(<hzr_kaplan>)
Print method for hzr_kaplan
hzr_calibrate()
Calibrate a continuous variable against an outcome
print(<hzr_calibrate>)
Print method for hzr_calibrate
hzr_nelson() print(<hzr_nelson>)
Wayne Nelson cumulative hazard estimator with lognormal confidence limits
hzr_bootstrap() print(<hzr_bootstrap>)
Bootstrap resampling for hazard model coefficients
hzr_competing_risks() print(<hzr_competing_risks>)
Competing risks cumulative incidence