add_hazards: Add Hazards

View source: R/survival_operations.R

add_hazardsR Documentation

Add Hazards

Description

Get a survival distribution reflecting the independent hazards from two or more survival distributions.

Usage

add_hazards(...)

add_hazards_(dots)

Arguments

...

Survival distributions to be used in the projection.

dots

Used to work around non-standard evaluation.

Value

A surv_add_haz object.

Examples


dist1 <- define_survival(distribution = "exp", rate = .125)
dist2 <- define_survival(distribution = "weibull", shape = 1.2, scale = 50)
combined_dist <- add_hazards(dist1, dist2)


heemod documentation built on July 26, 2023, 5:45 p.m.