Skip to contents

Apply a fixed shift in time to move the hazards of a survival distribution forwards or backwards.

Usage

apply_shift(dist, shift)

Arguments

dist

a survival distribution

shift

amount of time to shift distribution, where a positive value moves hazards forward and a negative value delays hazards.

Value

A surv_shift object.

Examples


shifted_dist <- apply_shift(
 define_surv_param("exp", rate = 0.25),
 3
)