Using the package flexsurvreg we can perform an analysis on time-to-event data. For example, I can create the following full model with all the variables in the
flexsurvreg