survival_outcome: Piecewise constant hazard rates and the cutpoint for control...

Description Usage Arguments Value Examples

View source: R/survival.R

Description

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

Usage

1
2
3
4
5
6
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

1
2
3
survival_outcome(hazard_treatment = 0.06,
                           hazard_control   = 0.08,
                           cutpoint         = NULL)

thevaachandereng/BACT documentation built on July 24, 2020, 2:35 a.m.