fc_surv {failCompare}R Documentation

Compute sample survival function

Description

Computes a sample survival function.

Usage

fc_surv(time, censorID = NULL, rc.value = NULL)

Arguments

time

failure or censoring time

censorID

binary or logical variable the same length as time indicating censored observations, with zeros or FALSE indicating a cenosored observation

rc.value

time after which all values are censored

Details

Calculates a sample survival function accounting for right censoring. In the absence of censoring, it uses the basic survival function estimator, or otherwise uses the Kaplan-Meier product limit estimate.

Value

a numeric vector of survival fraction estimates sample survival function


[Package failCompare version 1.0.0 Index]