It's stated on many online resources that Martingale plots can be used to assess linearity in a Cox model and there are abundant explanations about what constitutes being nonlinear in a plot, but I feel like advice on the appropriate subsequent action to take is lacking.
It's often described that squared terms, exponentials and logs can be added and restricted cubic splines could be used, but how can one know from visual assessment of the plots which is best?
For example, here are two variables of mine that appear nonlinear:
- Age
- Body length
Both of the above appear nonlinear but in different ways; what would be a course of action for such circumstances, but more importantly how can I learn how to know this myself?
Bonus question: So far I only checked vars that violate the PH assumption. Whilst I know that Martingale is mostly used for linearity and Schoenfeld for PH, I have read some conflicting accounts, and therefore clarity would be appreciated.

