km_log: Plot a Kaplan Meier curve in log scale

Description Usage Arguments Value Examples

View source: R/km_log.R

Description

The function plots a Kaplan Meier curve in log scale

Usage

1
km_log(time, censor, plotcens)

Arguments

time

time of observed event

censor

a vector indicating censored or not at the given times, 0 = censored; 1 = uncensored

plotcens

0: add censored data to the output curve

1: don't add censored data to the output curve

Value

A Kaplan Meier curve in log scale

Examples

1
2
3
t1 <- c(2,3,4,5.5,7,10,12,15)
c1 <- c(0,0,1,0,0,1,0,0)
km_log(t1,c1,0)

RPEXE.RPEXT documentation built on July 1, 2020, 6:02 p.m.