h_cox_regression function

Helper functions for Cox proportional hazards regression