Fits a Cox model for the time-to-milestone endpoint against a grouping variable and returns the group hazard ratio - the relative rate of attaining the milestone - with its confidence interval.
Arguments
- milestone
A time-to-milestone data.frame from
timeToMilestone()(columnstime,event), joined with the grouping variable.- group
Column name of the grouping variable.
- conf_level
Confidence level (default 0.95).
Value
An AnalysisResult (type = "milestone_hazard") as coxModel().