Code to create hazard and survival curves
merged.