Learn R Programming

depCensoring (version 0.1.7)

SurvFunc.KM: Estimated survival function based on Kaplan-Meier estimator

Description

Estimated survival function based on Kaplan-Meier estimator

Usage

SurvFunc.KM(tm = NULL, yobs, delta, type = "right")

Arguments

tm

a vector contains all time points that the survival function will be calculated at.

yobs

a numeric vector that indicated the observed survival times.

delta

a numeric vector that stores the right-censoring indicators.

type

a character string that specifies the type of the step function. If type="right", it will be a right-continuous function.