Proportionally increase or reduce the odds of an event of a survival distribution.

apply_or(dist, or, log_or = FALSE)

Arguments

dist

A survival distribution.

or

An odds ratio to be applied.

log_or

If TRUE, the odds ratio is exponentiated before being applied.

Value

A surv_po object.

Examples

dist1 <- define_survival(distribution = "exp", rate = .25) po_dist <- apply_or(dist1, 1.2)