View source: R/helper_functions.R
r2m | R Documentation |
Some functions to convert between days and months and rates and medians.
r2m(lambda)
m2r(med)
m2d(mon)
d2m(day)
lambda |
hazard rate |
med |
median in months |
mon |
time in months |
day |
time in days |
median survival time in months (r2m
)
hazard rate per day (m2r
)
time in days (m2d
)
time in months (d2m
)
r2m()
: daily rate to median in months
m2r()
: median to months to daily rate
m2d()
: months to days
d2m()
: days to months
r2m(0.002)
m2r(12)
m2d(1)
d2m(31)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.