“…Thus, the LOS for the i th patient and for j th stay is given by t ij − t ij −1 where T i ,0 = 0, for all i = 1, …, n and j = 1, …, m i , where n is the total number of patients. The hazard function for the j th event of i th subject at time t , i = 1, …, n and j = 1, …, m i , is given by Eq (1) [ 26 ]. The Cox model was applied to determine the significant covariate, which are associates with LOS The model was fitted using survival package in R [ 27 , 28 ].…”