Skip to contents

A class for defining a time-to-event survival analysis with a Weibull proportional hazards survival distribution. Objects of class WeibullPHSurvDist should not be created directly but by the constructor weib_ph_surv_dist().

Slots

function_stan_code

character. Stan function code block containing text to interpolate into Stan model.

param_stan_code

character. Stan parameter code block containing text to interpolate into Stan model.

likelihood_stan_code

character. Stan model likelihood code block containing text to interpolate into Stan model.

n_param

integer. Number of ancillary parameters for the model to estimate (1).

param_priors

list. Named list of prior distributions on the ancillary parameters in the model.

time_var

character. Variable used for time in TimeToEvent objects.

cens_var

character. Variable used for censoring in TimeToEvent objects.