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. Should not be edited by the user.

Value

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)
#> $hazard_treatment #> [1] 0.06 #> #> $hazard_control #> [1] 0.08 #>