Average Hazard Estimation based on Kaplan-Meier Estimates
Arguments
- resp
(
string
)
the response variable name.- trt
(
string
)
the treatment variable name. The treatment variable must be a factor with 2 levels where the first level is the control and the second one the treatment.- data
(
data frame
)
the data frame with the variables.- status
(
string
)
the status variable name in survival data.- t_quantile
(
number
)
definition of the quantile.
Value
The estimated average hazard ratio of the treatment (second level of trt
)
versus the control (first level of trt
).