Usage Arguments Value Examples
View source: R/get_hazardRate.R
1 2 3 4 5 | get_hazardRate(prop,time,theta=NULL)
get_eventProportion(hazard,time,theta=NULL)
get_eventProportion(hazard, time, theta = NULL)
|
prop |
a vector of numbers greater 0 and smaller 1 defining the proportion of patients having an event before 'time'. |
time |
a number defining the timeframe. |
theta |
optional number defining the hazard rate. Returning(-log(1-prop) /time * theta) |
hazard |
a vector of numbers greater 0 defining the hazard rates per timeintervall of length 1. |
a vector defining the hazard rate per timeintevall of length 1.
1 2 3 4 5 6 7 | # Assuming, that 30% of patients in the control group have an event after 24 month,
# the monthly hazard rate for the control group can be calculated by:
get_hazardRate(.3,24)
# With a assumed reduction of the hazard by 30% in the treatment group we can calculate
# the hazard rate as follows:
get_hazardRate(.3,24,1-.3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.