Statistical Methods for Survival Analysis in Large-scale Electronic Health Records Research