Fits a proportional hazards model to time to event data by a