I am utilizing a cox model for time to event analysis. I have a continuous predictor, that appeared to violate the linearity assumption. I then re-did my model with a spline function, and compared my two models with a likelihood ratio test like so:
model_a ~ A + B + C
model_b ~ A + B + pspline(C)
anova(model_a, model_b, test = "LRT")
The likelihood ratio test said the models did not significantly differ. Even if variable C violates the linearity assumption, will I still need to use the spline function? I am concerned about the increasing complexity of result interpretation having the spline would add, especially if it appears the models do not differ.