km_fit function

Kaplan-Meier (KM) estimate at specific time point

Kaplan-Meier (KM) estimate at specific time point

km_fit(time, status, t_risk)

Arguments

  • time: Character vector. Name of time variable.
  • status: Character vector. Name of status variable.
  • t_risk: Follow-up value to calculate cases, controls. See details.

Returns

KM estimate at specific time point

References

Pencina MJ, D'Agostino RB Sr, Steyerberg EW. Extensions of net reclassification improvement calculations to measure usefulness of new biomarkers. Stat Med. 2011;30(1):11-21

Inoue E (2018). nricens: NRI for Risk Prediction Models with Time to Event and Binary Response Data. R package version 1.6, https://CRAN.R-project.org/package=nricens.

See Also

km_fit

Author(s)

Martijn Heymans, 2023

  • Maintainer: Martijn Heymans
  • License: GPL (>= 2)
  • Last published: 2023-06-17