chjackson / flexsurv

The flexsurv R package for flexible parametric survival and multi-state modelling
http://chjackson.github.io/flexsurv/
55 stars 27 forks source link

categorical variables and interaction terms #20

Closed deva80 closed 7 years ago

deva80 commented 7 years ago

Can we input categorical variables with more than 2 levels using factor() notation in flexsurvspline? Or do I have to make dummy variables? Also, can we use interaction terms?

chjackson commented 7 years ago

Certainly, all standard R formula syntax should work in flexsurvreg and flexsurvspline. Have you tried what you want?