km_blacksolid: Kaplan-Meier curve

Description Usage Arguments Value Examples

View source: R/km_blacksolid.R

Description

This function plots the Kaplan-Meier curve without returning outputs

Usage

1
km_blacksolid(time, censor, plotcens)

Arguments

time

a vector of event or censoring time

censor

a vector indicating censoring: 0 = censored; 1 = uncensored

plotcens

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

Value

Kaplan-Meier curve only

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_blacksolid(t1,c1,0)

RPEXE.RPEXT documentation built on May 29, 2017, 12:40 p.m.