Good afternoon, colleagues!

I have recently been the user of R package ‘brms’.

I’m trying to use it to fit time-to-event data about the survival of patients.

I planned to use a Hazard function of this kind: the Weibull Hazard multiplied by the factor responsible for the effect of covariates.

My question is this: did I understand correctly that in this package this fitting in brm will be recorded as follows?

fit2 <- brm(time (time) | cens (CENSOR) ~ WHOSTATN + BASESLD + NLine,

data = df1, family = weibull(), inits = “0”,

control = list(adapt_delta = 0.95, max_treedepth = 12))

Is it enough, that the type of hazard is “contained” in the likelihood function?

- Operating System: Windows 7
- brms Version: 2.3.1