get.surv.km: Calculate a survival probability at a given time by the...

Description Usage Arguments

View source: R/get.surv.km.R

Description

This function estimates Pr\{T > t_0\} by the Kaplan-Meier estimator. t_0 should be given.

Usage

1
get.surv.km(time, event, t0, subs = NULL)

Arguments

time

Vector of follow up times.

event

Vector of event indicators, 1 for event of interest, 0 for censoring.

t0

Scalar value indicating a time to determine evnet/non-event (t_0).

subs

Vector of logical values to determine which subjects to be used for a calculation. When this option is not specified (subs = NULL), all subjects are used for a calculation.


nricens documentation built on May 2, 2019, 6:01 a.m.