powered by
Plots the survivor curve (log(survivors) against time) of a dataset to check for constancy of hazard.
plotsurvivors(x, status = rep(1, length(x)))
initial number of individuals.
time of events.
number of survivors at each time.
time to event.
status (1: event observed, 0: event not observed).
Maxime HERVE <maxime.herve@univ-rennes1.fr>
# 'kidney' dataset of package 'survival' require(survival) data(kidney) plotsurvivors(kidney$time,kidney$status)
Run the code above in your browser using DataLab