perc2hr: Convert survival percentile or hazard rate to the other

Description Usage Arguments Value Examples

Description

Given a survival percentile (e.g., 6 year median survival) or hazard rate under the exponential model, return the other.

Usage

1
perc2hr(x, perc = 0.5)

Arguments

x

Survival percentile or hazard rate.

perc

Percentile. Default corresponds to median survival.

Value

-log(perc) / x

Examples

1
2
3
  perc2hr(6)
  perchr(0.11552)
  perc2hr(6,0.8)

godwinyung/mmsurv documentation built on May 5, 2019, 12:32 p.m.