per2haz: Convert exponential parameters

Description Usage Arguments Details Value Examples

View source: R/class_arm.R

Description

Convert exponential survival percentile or hazard rate to the other.

Usage

1
per2haz(x, per = 0.5)

Arguments

x

survival percentile or exponential hazard rate

per

(per)th percentile

Details

y=-log(1-per)/x

Value

survival percentile or hazard rate.

Examples

1
2
3
4
per2haz(14)          # hazard rate for exponential with 14-month median
per2haz(0.05)        # median survival for exponential with hazard rate 0.05
per2haz(14, 0.8)     # hazard rate for exponential with 80th percentile survival at 14 months
per2haz(0.27, 0.8)   # 80th percentile survival for exponential with hazard rate 0.27

npsurvSS documentation built on Jan. 11, 2020, 9:18 a.m.