Skip to contents

Weibull survival distribution (proportional hazards formulation)

Usage

weib_ph_surv_dist(
  time_var,
  cens_var,
  shape_prior,
  baseline_prior,
  weight_var = ""
)

Arguments

time_var

character. Name of time variable column in model matrix

cens_var

character. Name of the censorship variable flag in model matrix

shape_prior

Prior class object for the Weibull shape parameter. Default is exponential_prior(beta = 0.0001).

baseline_prior

Prior. Object of class Prior specifying prior distribution for the baseline outcome. See Details for more information.

weight_var

character. Optional name of variable in model matrix for weighting the log likelihood.

Value

Object of class WeibullPHSurvDist.

Details

Baseline Prior

The baseline_prior argument specifies the prior distribution for the baseline log hazard rate. The interpretation of the baseline_prior differs slightly between methods selected in borrowing_details():

  • 'BDB': the baseline_prior for Bayesian Dynamic Borrowing refers to the log hazard rate of the external control arm.

  • 'Full borrowing' or 'No borrowing': the baseline_prior for these borrowing methods refers to the log hazard rate for the internal control arm.

See also

Other outcome models: exp_surv_dist(), logistic_bin_outcome()

Examples

ws <- weib_ph_surv_dist(
  time_var = "time",
  cens_var = "cens",
  shape_prior = exponential_prior(1),
  baseline_prior = normal_prior(0, 1000)
)