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_surv_dist(distribution = "exp", rate = .25)
po_dist <- apply_or(dist1, 1.2)

heemod documentation built on May 29, 2024, 8:17 a.m.