Miscellaneous functions for survival data.