Closed Geoff-Holmes closed 6 years ago
Sorry the comments turned into large text! I've realised I can (obviously!) just create a new column in the data for the interaction term.
Hi Geoff,
No problems! And yes --- that is the way to deal with interactions. I think flexsurvreg
may construct the "model matrix" (ie the matrix of covariates) automatically using the syntax a:b
to mean interaction between a
and b
. survHE
needs you to specify the new column a*b
at the moment. I can see how quickly I can include the a:b
notation --- shouldn't be too long (but possibly not super high priority?).
Hi Gianluca
I'm wondering if it is possible to include interaction terms as is possible in the underlying flexsurv. e.g.