Skip to contents

Weibull survival distribution (proportional hazards formulation)

Usage

weib_ph_surv_dist(
  time_var,
  cens_var,
  shape_prior = exponential_prior(beta = 1e-04)
)

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).

Value

Object of class WeibullPHSurvDist.

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))