First of all, apologies but my stats knowledge is limited and based on very isolated topics! From what I understand, regression splines are used when the covariates "aren't linear". What does that mean? Interaction of the covariate with what needs to be linear (if you could provide an example based on survival models in R it would be great)? I understand that the "regression splines" smooth the interaction of the covariate with something over knots and that they're smooth at the joints- but when to use them, how to pick the number of knots (because the position doesn't matter in cubic splines?) and what's the overall impact on a model?
I feel like I'm missing something really important so apologies if i completely misinterpreted their use!
rmspackage, as it includes both anrcs()function for setting up the spline and prediction functions designed to work with it. – EdM May 02 '23 at 17:32rcs()function works most reliably in modeling within thermspackage. There can be problems when you try to use it with other packages. – EdM May 05 '23 at 12:34