Survival Analysis with applications in R