Check that there are at least two distinct values in the events column for CoxPH.