survNRI-package: Calculate estimates of NRI for survival data.

Description Details Author(s) References Examples

Description

This package consists of a single function 'survNRI' that calculates five different estimators of the Net Reclassification Improvement (NRI) statistic. See references below and ?survNRI for more information.

Details

Package: survNRI
Type: Package
Version: 0.0
Date: 2013-04-09
License: GPL-2

Author(s)

Yingye Zhenge, Tianxi Cai and Marshall Brown

Maintainer: <mdbrown@fhcrc.org>

References

Lifetime Data Anal. 2012 Dec 20. [Epub ahead of print] Evaluating incremental values from new predictors with net reclassification improvement in survival analysis. Zheng Y, Parast L, Cai T, Brown M. PMID: 23254468

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#load simulated data
data(SimData)


#all estimates, with 95% normal approx bootstrap CI
survNRI( time  = "stime", event = "status",
                          model1 = "y1",
                          model2 = c("y1", "y2"),
                          data = SimData, 
                          predict.time = 3,
                          method = "all",
                          bootMethod = "normal",
                          bootstraps = 25)

#only SmoothIPW, SEM and combined, with 99% bootstrap percentile CI
tmp <- survNRI( time  = "stime", event = "status",
                                 model1 = "y1", 
                                 model2 = c("y1", "y2"),
                                 data = SimData, 
                                 predict.time = 3,
                                 method = c("SmoothIPW", "SEM", "Combined"),
                                 bootMethod ="percentile", 
                                 bootstraps = 25,
                                 alpha = .01  )

#look at the results
tmp

#access estimates and ci's
tmp$estimates
tmp$CI

mdbrown/survNRI documentation built on May 22, 2019, 3:24 p.m.