Generalized competing event model based on Cox PH model and Fine-Gray model. This function is designed to develop optimized risk-stratification methods for competing risks data, such as described in: 1. Carmona R, Gulaya S, Murphy JD, Rose BS, Wu J, Noticewala S,McHale MT, Yashar CM, Vaida F, and Mell LK.(2014) <doi:10.1016/j.ijrobp.2014.03.047>. Validated competing event model for thestage I-II endometrial cancer population. Int J Radiat Oncol Biol Phys.89:888-98. 2. Carmona R, Zakeri K, Green G, Hwang L, Gulaya S, Xu B, Verma R, Williamson CW, Triplett DP, Rose BS, Shen H, Vaida F, Murphy JD, and Mell LK.(2016) <doi:10.1200/JCO.2015.65.0739>. Improved method to stratify elderly cancer patients at risk for competing events. J Clin Oncol.in press.