Package survidinri. February 20, 2015

Similar documents
Package comparec. R topics documented: February 19, Type Package

Package idmtpreg. February 27, 2018

Package SimSCRPiecewise

Package CoxRidge. February 27, 2015

Package BayesNI. February 19, 2015

Package darts. February 19, 2015

Package ltsbase. R topics documented: February 20, 2015

Package rgabriel. February 20, 2015

Package gma. September 19, 2017

Package threg. August 10, 2015

Package covtest. R topics documented:

Package BNN. February 2, 2018

Package severity. February 20, 2015

Package face. January 19, 2018

Package netcoh. May 2, 2016

Package leiv. R topics documented: February 20, Version Type Package

Package MultisiteMediation

Package mpmcorrelogram

Package ICBayes. September 24, 2017

Package depth.plot. December 20, 2015

Package pssm. March 1, 2017

Package rela. R topics documented: February 20, Version 4.1 Date Title Item Analysis Package with Standard Errors

Package RootsExtremaInflections

Package anoint. July 19, 2015

The nltm Package. July 24, 2006

Package gtheory. October 30, 2016

Package CPE. R topics documented: February 19, 2015

Package Blendstat. February 21, 2018

Package msir. R topics documented: April 7, Type Package Version Date Title Model-Based Sliced Inverse Regression

Package LIStest. February 19, 2015

Package crrsc. R topics documented: February 19, 2015

Package sbgcop. May 29, 2018

Package RI2by2. October 21, 2016

Package DTK. February 15, Type Package

Package pearson7. June 22, 2016

Package Rsurrogate. October 20, 2016

Package hds. December 31, 2016

Package SEMModComp. R topics documented: February 19, Type Package Title Model Comparisons for SEM Version 1.0 Date Author Roy Levy

Package flexcwm. R topics documented: July 11, Type Package. Title Flexible Cluster-Weighted Modeling. Version 1.0.

Package lomb. February 20, 2015

Package CMC. R topics documented: February 19, 2015

Package InferenceSMR

Package flexcwm. R topics documented: July 2, Type Package. Title Flexible Cluster-Weighted Modeling. Version 1.1.

Package AID. R topics documented: November 10, Type Package Title Box-Cox Power Transformation Version 2.3 Date Depends R (>= 2.15.

Package reinforcedpred

Package scio. February 20, 2015

Package ICGOR. January 13, 2017

Package penmsm. R topics documented: February 20, Type Package

Package ForwardSearch

Package IUPS. February 19, 2015

Package NonpModelCheck

Package bhrcr. November 12, 2018

Package factorqr. R topics documented: February 19, 2015

The Net Reclassification Index (NRI): a Misleading Measure of Prediction Improvement with Miscalibrated or Overfit Models

Package SightabilityModel

Package CovSel. September 25, 2013

Package unbalhaar. February 20, 2015

Package TwoStepCLogit

Package clogitboost. R topics documented: December 21, 2015

Package ShrinkCovMat

Package EnergyOnlineCPM

Package EMVS. April 24, 2018

Package REGARMA. R topics documented: October 1, Type Package. Title Regularized estimation of Lasso, adaptive lasso, elastic net and REGARMA

Package drgee. November 8, 2016

Package beam. May 3, 2018

Package LBLGXE. R topics documented: July 20, Type Package

Package rnmf. February 20, 2015

Package separationplot

Package sklarsomega. May 24, 2018

Package complex.surv.dat.sim

Package effectfusion

Package metansue. July 11, 2018

Package hierdiversity

Package shrink. August 29, 2013

Package MicroMacroMultilevel

Package generalhoslem

Package esaddle. R topics documented: January 9, 2017

Package penalized. February 21, 2018

Package esreg. August 22, 2017

Package GORCure. January 13, 2017

Package CompQuadForm

Package Grace. R topics documented: April 9, Type Package

Package RcppSMC. March 18, 2018

Package ppcc. June 28, 2017

Package dhsic. R topics documented: July 27, 2017

Package CorrMixed. R topics documented: August 4, Type Package

Package mlmmm. February 20, 2015

Package HIMA. November 8, 2017

Package dhga. September 6, 2016

Package EDR. September 14, 2016

Package crossreg. February 19, 2015

Package weightquant. R topics documented: December 30, Type Package

Package symmoments. R topics documented: February 20, Type Package

Package threeboost. February 20, 2015

Package spcov. R topics documented: February 20, 2015

Package riv. R topics documented: May 24, Title Robust Instrumental Variables Estimator. Version Date

Package breakaway. R topics documented: March 30, 2016

Package ARCensReg. September 11, 2016

Package My.stepwise. June 29, 2017

Package gwqs. R topics documented: May 7, Type Package. Title Generalized Weighted Quantile Sum Regression. Version 1.1.0

Transcription:

Package survidinri February 20, 2015 Type Package Title IDI and NRI for comparing competing risk prediction models with censored survival data Version 1.1-1 Date 2013-4-8 Author Hajime Uno, Tianxi Cai Maintainer Hajime Uno <huno@jimmy.harvard.edu> Depends survival, survc1 Performs inference for a class of measures to compare competing risk prediction models with censored survival data. The class includes the integrated discrimination improvement index (IDI) and category-less net reclassification index (NRI). License GPL-2 LazyLoad yes NeedsCompilation yes Repository CRAN Date/Publication 2013-04-08 22:18:31 R topics documented: survidinri-package.................................... 2 IDI.INF........................................... 3 IDI.INF.GRAPH...................................... 5 IDI.INF.OUT........................................ 6 Index 7 1

2 survidinri-package survidinri-package IDI and NRI for comparing competing risk prediction models with censored survival data Details Performs inference for a class of measures to compare competing risk prediction models with censored survival data. The class includes the integrated discrimination improvement index (IDI) and category-less net reclassification index (NRI). Package: survidinri Type: Package Version: 1.1-1 Date: 2013-4-8 License: GPL-2 Author(s) Hajime Uno, Tianxi Cai Maintainer: Hajime Uno <huno@jimmy.harvard.edu> References Pencina MJ, D Agostino RB, Steyerberg EW. Extensions of net reclassification improvement calculations to measure usefulness of new biomarkers. Statistics in Medicine 2011. doi:10.1002/sim.5647 Uno H, Tian L, Cai T, Kohane IS, Wei LJ. A unified inference procedure for a class of measures to assess improvement in risk prediction systems with survival data, Statistics in Medicine 2012. doi:10.1002/sim.5647 See Also survc1-package #--- sample data (pbc in survival package) --- D=subset(pbc, select=c("time","status","age","albumin","edema","protime","bili")) D$status=as.numeric(D$status==2) D=D[!is.na(apply(D,1,mean)),] ; dim(d) mydata=d[1:100,]

IDI.INF 3 t0=365*5 indata1=mydata; indata0=mydata[,-7] ; n=nrow(d) ; covs1<-as.matrix(indata1[,c(-1,-2)]) covs0<-as.matrix(indata0[,c(-1,-2)]) #--- inference --- x<-idi.inf(mydata[,1:2], covs0, covs1, t0, npert=200) ; #--- results --- IDI.INF.OUT(x) ; #--- Graphical presentaion of the estimates --- # IDI.INF.GRAPH(x) ; IDI.INF Inference for IDI, continuous NRI, and median improvement This function performs inference for IDI, continuous NRI, and median improvement. Censoring is adjusted by the inverse probability censoring weight. Proportinal hazards models are used as working models. Usage IDI.INF(indata, covs0, covs1, t0, npert = 300, npert.rand = NULL, seed1 = NULL, alpha = 0.05) Arguments indata covs0 covs1 t0 Time-to-event data. The number of columns should be 2. The 1st column should be time-to-event, and the 2nd column is event indicator (1=event, 0=censor). Covariates/predictors data for a base model (Model 0). Factor variables or character variables are not allowed. If any factor variable is involved in the set of predictors, use model.matrix() for dummy coding. covs0 need to be a design matrix. Also missing value should not be included here. Covariates/predictors data for a new model (Model 0). Factor variables or character variables are not allowed. If any factor variable is involved in the set of predictors, use model.matrix() for dummy coding. covs1 need to be a design matrix. Also missing value should not be included here. A timepoint to define event=yes/no (case/control). Risk score is calculated as the event probability at t0 for each model. npert The number of iterations for the perturbation-resampling. Default is 300.

4 IDI.INF npert.rand seed1 alpha If NULL (default), fresh random numbers will be generated in this routine. If a (n x m) matrix is given as npert.rand, those numbers are used in the pertubation instead, where n is the number of subjects and m is the number of iterations of the resampling. The random numbers should be generated from a distribution with mean 1 and variance 1 independently. A seed for generating random numbers for the perturbation-resampling. Default is NULL. (1-alpha/2) confidence interval will be calcualted. A 0.95 confidence interval will be provided as a default. Value m1 m2 m3 m1.est m2.est m3.est m3.est point Result of IDI. Point and corresponding (1-alpha/2) confidence interval are given Result of continuous-nri. Point and corresponding (1-alpha/2) confidence interval are given. Note that m2 corresponds to the quantity defined as 1/2 NRI(>0) in Pencina et al.(2011) Result of median improvement in risk score. Point and corresponding (1-alpha/2) confidence interval are given A vector with 3 elements. The 1st element is the point estimate of the IDI and the 2nd element is the average of risk score in event group, and the 3rd element is the average of risk score in non-event group. The 1st element is equal to the 2nd element minus the 3rd element. A vector with 3 elements. The 1st element is the point estimate of the continous- NRI. The 2nd element is the proportion of patients in whom the risk scores with the new model were higher than the risk scores with the old model, among event group. The 3rd element is the same proportion but among non-event group. The 1st element is equal to the 2nd element minus the 3rd element. A vector with 3 elements. The 1st element is the point estimate of the median improvement and the 2nd element is the median of risk score in event group, and the 3rd element is the median of risk score in non-event group. The 1st element is equal to the 2nd element minus the 3rd element. A vector with 3 elements. The 1st element is the point estimate of the median improvement and the 2nd element is the median of risk score in event group, and the 3rd element is the median of risk score in non-event group. The 1st element is equal to the 2nd element minus the 3rd element. An object used in IDI.INF.GRAPH() Note m2 corresponds to the quantity defined as 1/2 NRI(>0) in Pencina et al.(2011) When the base model and the new model are nested, make sure that regression coefficients for the added predictors are significantly different from 0 in the new model, before using this function.

IDI.INF.GRAPH 5 References Pencina MJ, D Agostino RB, Steyerberg EW. Extensions of net reclassification improvement calculations to measure usefulness of new biomarkers. Statistics in Medicine 2011. doi:10.1002/sim.5647 Uno H, Tian L, Cai T, Kohane IS, Wei LJ. A unified inference procedure for a class of measures to assess improvement in risk prediction systems with survival data, Statistics in Medicine 2012. doi:10.1002/sim.5647 See Also Papers regarding the issue on evaluating nested models: Kerr KF, McClelladm RL, Brown ER, Lumley T. Evaluating the Incremental Value of New Biomarkers With Integrated Discrimination Improvement American journal of epidemiology 2011, 174(3):364-74. Demler OV, Pencina MJ, D Agostino RB. Misuse of DeLong test to compare AUCs for nested models. Statistics in Medicine 2012; online ahead of print. #--- sample data (pbc in survival package) --- D=subset(pbc, select=c("time","status","age","albumin","edema","protime","bili")) D$status=as.numeric(D$status==2) D=D[!is.na(apply(D,1,mean)),] ; dim(d) mydata=d[1:100,] t0=365*5 indata1=mydata; indata0=mydata[,-7] ; n=nrow(d) ; covs1<-as.matrix(indata1[,c(-1,-2)]) covs0<-as.matrix(indata0[,c(-1,-2)]) #--- inference --- x<-idi.inf(mydata[,1:2], covs0, covs1, t0, npert=200) ; #--- results --- IDI.INF.OUT(x) ; #--- Graphical presentaion of the estimates --- # IDI.INF.GRAPH(x) ; IDI.INF.GRAPH Function to display IDI and other measures in a graph This function generates a plot to graphically display IDI, continuous NRI, and median improvement

6 IDI.INF.OUT Usage IDI.INF.GRAPH(x, main = NULL, xlab = NULL, ylab = NULL, cex.main = NULL, cex.lab = NULL,...) Arguments x An object generated by IDI.INF main main title of graph xlab label of x-axis. The default is "s" ylab label of y-axis. The default is expression(paste("pr(",hat(d)<=s,")")) cex.main size of the main title cex.lab size of the labels... Arguments passed to plot() Details This function provide a plot to graphically display IDI, continous-nri and median improvement. ## see example in IDI.INF IDI.INF.OUT Function to print the summary This function disply a summary result performed by IDI.INF() Usage IDI.INF.OUT(x) Arguments x An object generated by IDI.INF Details This function displays the point estimates of IDI, continous-nri and median improvement, and corresponding (1-alpha) confidence intervals. ## see example in IDI.INF

Index Topic IDI, NRI, survival survidinri-package, 2 Topic \textasciitildekwd1 IDI.INF, 3 IDI.INF.GRAPH, 5 IDI.INF.OUT, 6 Topic \textasciitildekwd2 IDI.INF, 3 IDI.INF.GRAPH, 5 IDI.INF.OUT, 6 IDI.INF, 3 IDI.INF.GRAPH, 5 IDI.INF.OUT, 6 survidinri (survidinri-package), 2 survidinri-package, 2 7