internal.survival function

Internal function for creating survival curves