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, please do not fill it in.

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 )

bayesCT documentation built on July 2, 2020, 2:34 a.m.