g_km function

Kaplan-Meier plot