Skip to contents

A class for defining a time-to-event survival analysis with an exponential survival distribution. Objects of class ExponentialSurvDist should not be created directly but by the constructor exp_surv_dist().

Slots

function_stan_code

character. stan function code block containing text to interpolate into stan model. Empty string for ExponentialSurvDist.

param_stan_code

character. stan parameter code block containing text to interpolate into stan model. Empty string for ExponentialSurvDist.

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

param_priors

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

time_var

character. Variable used for time in TimeToEvent objects.

cens_var

character. Variable used for censoring in TimeToEvent objects.

baseline_prior

Prior. Object of class Prior specifying prior distribution for the baseline outcome.