per2haz | R Documentation |
Convert exponential survival percentile or hazard rate to the other.
per2haz(x, per = 0.5)
x |
survival percentile or exponential hazard rate |
per |
(per)th percentile |
y=-log(1-per)/x
survival percentile or hazard rate.
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.