per2haz {npsurvSS} | R Documentation |
Convert exponential parameters
Description
Convert exponential survival percentile or hazard rate to the other.
Usage
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
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
[Package npsurvSS version 1.1.0 Index]