plotsurvivors: Survivor curve

Description Usage Arguments Value Author(s) Examples

View source: R/plotsurvivors.R

Description

Plots the survivor curve (log(survivors) against time) of a dataset to check for constancy of hazard.

Usage

1
plotsurvivors(x, status = rep(1, length(x)))

Arguments

x

time to event.

status

status (1: event observed, 0: event not observed).

Value

n

initial number of individuals.

time

time of events.

alive

number of survivors at each time.

Author(s)

Maxime Herv<e9> <maxime.herve@univ-rennes1.fr>

Examples

1
2
3
4
# 'kidney' dataset of package 'survival'
require(survival)
data(kidney)
plotsurvivors(kidney$time,kidney$status)

Example output

*** Package RVAideMemoire v 0.9-73 ***
Loading required package: survival

RVAideMemoire documentation built on June 28, 2021, 9:06 a.m.