This post is about different functions of the survival package, like basehaz, predict.coxph, survfit, termplot, what kind of results they provide and how they are calculated.
This blog shows how to externally validate a Cox regression prognostic model according to all steps in the paper of Royston & Altman
. R code available.