apply_or: Apply an Odds Ratio

View source: R/survival_operations.R

apply_orR Documentation

Apply an Odds Ratio

Description

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

Usage

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)

pierucci/heemod documentation built on July 17, 2022, 9:27 p.m.