View source: R/plotsurvivors.R
plotsurvivors | R Documentation |
Plots the survivor curve (log(survivors) against time) of a dataset to check for constancy of hazard.
plotsurvivors(x, status = rep(1, length(x)))
x |
time to event. |
status |
status (1: event observed, 0: event not observed). |
n |
initial number of individuals. |
time |
time of events. |
alive |
number of survivors at each time. |
Maxime HERVE <maxime.herve@univ-rennes1.fr>
# 'kidney' dataset of package 'survival'
require(survival)
data(kidney)
plotsurvivors(kidney$time,kidney$status)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.