survival_outcome function

Piecewise constant hazard rates and the cutpoint for control and treatment group

Piecewise constant hazard rates and the cutpoint for control and treatment group

Wrapper function for the piecewise constant hazard rates and the cutpoint for control and treatment group.

survival_outcome( hazard_treatment = NULL, cutpoint = NULL, hazard_control = NULL, .data = NULL )

Arguments

  • hazard_treatment: vector. Constant hazard rates under the treatment arm.
  • cutpoint: vector. The change-point vector indicating time when the hazard rates change.
  • hazard_control: vector. Constant hazard rates under the control arm.
  • .data: NULL. stores the hazard rates and cutpoint, please do not fill it in.

Returns

a list with hazard rates and cutpoint for control and treatment group.

Examples

survival_outcome(hazard_treatment = 0.06, hazard_control = 0.08, cutpoint = NULL )