pec: Prediction Error Curves for Risk Prediction Models in Survival Analysis

Validation of risk predictions obtained from survival models and competing risk models based on censored data using inverse weighting and cross-validation.

Install the latest version of this package by entering the following in R:
AuthorThomas A. Gerds
Date of publication2017-03-06 15:45:07
MaintainerThomas A. Gerds <>
LicenseGPL (>= 2)

View on CRAN

Man pages

calPlot: Calibration plots for right censored data

cindex: Concordance index for right censored survival time data

cost: Copenhagen Stroke Study

coxboost: Formula interface for function 'CoxBoost' of package...

crps: Summarizing prediction error curves

GBSG2: German Breast Cancer Study Group 2

ipcw: Estimation of censoring probabilities

Pbc3: Pbc3 data

pec: Prediction error curves

pecCforest: S3-wrapper function for cforest from the party package

pecCtree: S3-Wrapper for ctree.

pecRpart: Predict survival based on rpart tree object

plot.calibrationPlot: Plot objects obtained with 'calPlot'

plot.pec: Plotting prediction error curves

plotPredictEventProb: Plotting predicted survival curves.

plotPredictSurvProb: Plotting predicted survival curves.

predictEventProb: Predicting event probabilities (cumulative incidences) in...

predictLifeYearsLost: Predicting life years lost (cumulative cumulative incidences)...

predictRestrictedMeanTime: Predicting restricted mean time

predictSurvProb: Predicting survival probabilities

print.pec: Printing a 'pec' (prediction error curve) object.

R2: Explained variation for survival models

reclass: Retrospective risk reclassification table

resolvesplitMethod: Resolve the splitMethod for estimation of prediction...

selectCox: Backward variable selection in the Cox regression model

selectFGR: Stepwise variable selection in the Fine & Gray regression...

simCost: Simulate COST alike data

Special: Drawing bootstrapped cross-validation curves and the .632 or...

threecity: threecity data

wallyPlot: Wally plots to assess calibration of a risk or survival...


calPlot Man page
cindex Man page
cost Man page
coxboost Man page
crps Man page
GBSG2 Man page
ibs Man page
ipcw Man page
ipcw.aalen Man page
ipcw.cox Man page
ipcw.marginal Man page
ipcw.none Man page
ipcw.nonpar Man page
Pbc3 Man page
pec Man page
pecCforest Man page
pecCtree Man page
pecRpart Man page
plot.calibrationPlot Man page
plot.pec Man page
plotPredictEventProb Man page
plotPredictSurvProb Man page
predictEventProb Man page
predictEventProb.CauseSpecificCox Man page
predictEventProb.FGR Man page
predictEventProb.prodlim Man page
predictEventProb.rfsrc Man page
predictEventProb.riskRegression Man page
predictLifeYearsLost Man page
predictLifeYearsLost.CauseSpecificCox Man page
predictLifeYearsLost.FGR Man page
predictLifeYearsLost.prodlim Man page
predictLifeYearsLost.rfsrc Man page
predictLifeYearsLost.riskRegression Man page
predictRestrictedMeanTime Man page
predictRestrictedMeanTime.aalen Man page
predictRestrictedMeanTime.cox.aalen Man page
predictRestrictedMeanTime.coxph Man page
predictRestrictedMeanTime.cph Man page
predictRestrictedMeanTime.default Man page
predictRestrictedMeanTime.matrix Man page
predictRestrictedMeanTime.pecCtree Man page
predictRestrictedMeanTime.pecRpart Man page
predictRestrictedMeanTime.prodlim Man page
predictRestrictedMeanTime.psm Man page
predictRestrictedMeanTime.rfsrc Man page
predictRestrictedMeanTime.riskRegression Man page
predictRestrictedMeanTime.selectCox Man page
predictRestrictedMeanTime.survfit Man page
predictSurvProb Man page
predictSurvProb.aalen Man page
predictSurvProb.cox.aalen Man page
predictSurvProb.coxph Man page
predictSurvProb.cph Man page
predictSurvProb.default Man page
predictSurvProb.matrix Man page
predictSurvProb.pecCforest Man page
predictSurvProb.pecCtree Man page
predictSurvProb.pecRpart Man page
predictSurvProb.prodlim Man page
predictSurvProb.psm Man page
predictSurvProb.rfsrc Man page
predictSurvProb.riskRegression Man page
predictSurvProb.selectCox Man page
predictSurvProb.survfit Man page
print.pec Man page
R2 Man page
reclass Man page
resolvesplitMethod Man page
selectCox Man page
selectFGR Man page
simCost Man page
Special Man page
summary.pec Man page
threecity Man page
wallyPlot Man page


R/testResiduals.R R/print.vandeWielTest.R R/predictSurvProb.R R/plot.pec.R R/predictEventProb.coxboost.R R/print.R2.R R/calPlot.R R/summary.Cindex.R R/pec-package.R R/crps.R R/kFoldCrossValidation.R R/bootstrapCrossValidation.R R/CindexBootstrapCrossValidation.R R/allComparisons.R R/pec.R R/print.Cindex.R R/summary.confScoreSurv.R R/plot.CiCindex.R R/predictRestrictedMeanTime.R R/ipcw.R R/R2.R R/predictSurvProb.ctree.R R/plot.calibrationPlot.R R/predictEventProb.R R/predictLandmark.R R/CindexKFoldCrossValidation.R R/predictSurvProb.pseudoForest.R R/pseudo.kFoldCrossValidation.R R/predictSurvProb.cforest.R R/print.calibrationPlot.R R/checkModels.R R/summary.pec.R R/survest.cox.aalen.R R/print.ConfScoreSurv.R R/resolveSplitMethod.R R/selectCox.R R/predictSurvProb.penfitS3.R R/print.riskReclassification.R R/print.method.R R/ConfScoreSurv.R R/plotPredictSurvProb.R R/predictSurvProb.FastBw.R R/ConfInt.Cindex.R R/print.crps.R R/baselineHazard.coxph.R R/plot.Cindex.R R/plot.riskReclassification.R R/predictEventProb.pseudoForest.R R/plotPredictEventProb.R R/simCost.R R/internalTalk.R R/predictLifeYearsLost.R R/print.splitMethod.R R/predictEventProb.selectFGR.R R/survest.aalen.R R/reclass.R R/cindex.R R/plot.confScoreSurv.R R/Dint.R R/ibs.R R/print.IPCW.R R/print.pec.R R/print.multiSplitTest.R R/marginal.prodlim.R R/wallyPlot.R R/Special.R R/internalReevalFit.R
man/Special.Rd man/crps.Rd man/plot.pec.Rd man/predictEventProb.Rd man/GBSG2.Rd man/threecity.Rd man/cost.Rd man/plotPredictSurvProb.Rd man/pecCtree.Rd man/calPlot.Rd man/reclass.Rd man/predictRestrictedMeanTime.Rd man/wallyPlot.Rd man/resolvesplitMethod.Rd man/plotPredictEventProb.Rd man/simCost.Rd man/R2.Rd man/selectFGR.Rd man/selectCox.Rd man/pec.Rd man/predictSurvProb.Rd man/print.pec.Rd man/Pbc3.Rd man/cindex.Rd man/predictLifeYearsLost.Rd man/pecCforest.Rd man/pecRpart.Rd man/ipcw.Rd man/coxboost.Rd man/plot.calibrationPlot.Rd

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.