Event function

Create a survival or competing-risks response