Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

get.surv.km

Calculate a survival probability at a given time by the standard Kaplan-Meier estimator.


Description

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

Usage

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

NRI for Risk Prediction Models with Time to Event and Binary Response Data

v1.6
GPL-2
Authors
Eisuke Inoue
Initial release
2018-5-30

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.