Other packages > Find by keyword >

pec  

Prediction Error Curves for Risk Prediction Models in Survival Analysis
View on CRAN: Click here


Download and install pec package within the R console
Install from CRAN:
install.packages("pec")

Install from Github:
library("remotes")
install_github("cran/pec")

Install by package version:
library("remotes")
install_version("pec", "2025.06.24")



Attach the package and use:
library("pec")
Maintained by
Thomas A. Gerds
[Scholar Profile | Author Map]
All associated links for this package
First Published: 2008-07-28
Latest Update: 2025-07-24
Description:
Validation of risk predictions obtained from survival models and competing risk models based on censored data using inverse weighting and cross-validation. Most of the 'pec' functionality has been moved to 'riskRegression'.
How to cite:
Thomas A. Gerds (2008). pec: Prediction Error Curves for Risk Prediction Models in Survival Analysis. R package version 2025.06.24, https://cran.r-project.org/web/packages/pec. Accessed 21 Jul. 2026.
Previous versions and publish date:
(2026-07-09 06:40), 1.0.7 (2008-07-28 08:18), 1.1.0 (2009-04-15 13:03), 1.1.1 (2009-06-24 16:04), 2.0.8 (2011-10-12 17:37), 2.1.1 (2011-12-15 11:39), 2.1.2 (2011-12-22 20:10), 2.1.7 (2012-01-30 21:18), 2.1.8 (2012-08-27 19:23), 2.1.9 (2012-08-28 22:07), 2.2.2 (2012-09-18 08:24), 2.2.4 (2012-10-30 12:50), 2.2.5 (2013-01-08 09:24), 2.2.6 (2013-01-08 16:28), 2.2.9 (2013-03-25 16:11), 2.3.7 (2014-09-05 17:51), 2.4.4 (2014-12-05 12:55), 2.4.7 (2015-10-05 12:58), 2.4.9 (2016-05-14 23:19), 2.5.3 (2017-03-06 15:45), 2.5.4 (2017-08-08 14:56), 2018.04.18 (2018-04-18 10:18), 2018.07.26 (2018-07-26 12:10), 2019.11.03 (2019-11-03 22:20), 2020.11.17 (2020-11-16 17:30), 2021.10.11 (2021-10-11 16:30), 2022.03.06 (2022-03-08 17:50), 2022.05.04 (2022-05-04 14:00), 2023.04.12 (2023-04-11 14:10)
Other packages that cited pec R package
View pec citation profile
Other R packages that pec depends, imports, suggests or enhances
Complete documentation for pec
Functions, R codes and Examples using the pec R package
Some associated functions: GBSG2 . Pbc3 . R2 . Special . calPlot . cindex . cost . coxboost . crps . ipcw . pec . pecCforest . pecCtree . pecRpart . plot.calibrationPlot . plot.pec . plotPredictEventProb . plotPredictSurvProb . predictEventProb . predictLifeYearsLost . predictRestrictedMeanTime . predictSurvProb . print.pec . reclass . resolvesplitMethod . selectCox . simCost . threecity . 
Some associated R codes: CindexBootstrapCrossValidation.R . CindexKFoldCrossValidation.R . ConfInt.Cindex.R . ConfScoreSurv.R . Dint.R . R2.R . Special.R . allComparisons.R . baselineHazard.coxph.R . bootstrapCrossValidation.R . calPlot.R . checkModels.R . cindex.R . crps.R . ibs.R . internalReevalFit.R . internalTalk.R . ipcw.R . kFoldCrossValidation.R . marginal.prodlim.R . pec-package.R . pec.R . plot.CiCindex.R . plot.Cindex.R . plot.calibrationPlot.R . plot.confScoreSurv.R . plot.pec.R . plot.riskReclassification.R . plotPredictEventProb.R . plotPredictSurvProb.R . predictEventProb.R . predictEventProb.coxboost.R . predictEventProb.pseudoForest.R . predictLandmark.R . predictLifeYearsLost.R . predictRestrictedMeanTime.R . predictSurvProb.FastBw.R . predictSurvProb.R . predictSurvProb.cforest.R . predictSurvProb.ctree.R . predictSurvProb.penfitS3.R . predictSurvProb.pseudoForest.R . print.Cindex.R . print.ConfScoreSurv.R . print.IPCW.R . print.R2.R . print.calibrationPlot.R . print.crps.R . print.method.R . print.multiSplitTest.R . print.pec.R . print.riskReclassification.R . print.splitMethod.R . print.vandeWielTest.R . pseudo.kFoldCrossValidation.R . reclass.R . resolveSplitMethod.R . selectCox.R . simCost.R . summary.Cindex.R . summary.confScoreSurv.R . summary.pec.R . survest.aalen.R . survest.cox.aalen.R . testResiduals.R .  Full pec package functions and examples
Downloads during the last 30 days

Today's Hot Picks in Authors and Packages

OSTE  
Optimal Survival Trees Ensemble
Function for growing survival trees ensemble ('Naz Gul', 'Nosheen Faiz', 'Dan Brawn', 'Rafal Kulakow ...
Download / Learn more Package Citations See dependency  
quickcode  
Quick and Essential 'R' Tricks for Better Scripts
The NOT functions, 'R' tricks and a compilation of some simple quick plus often used 'R' codes to im ...
Download / Learn more Package Citations See dependency  
truncnormbayes  
Estimates Moments for a Truncated Normal Distribution using 'Stan'
Finds the posterior modes for the mean and standard deviation for a truncated normal distribution wi ...
Download / Learn more Package Citations See dependency  
beastier  
Call 'BEAST2'
'BEAST2' () is a widely used Bayesian phylogenetic tool, that uses DNA/RNA/ ...
Download / Learn more Package Citations See dependency  
splash  
Simple Process-Led Algorithms for Simulating Habitats
This program calculates bioclimatic indices and fluxes (radiation, evapotranspiration, soil moistur ...
Download / Learn more Package Citations See dependency  
netgen  
Network Generator for Combinatorial Graph Problems
Methods for the generation of a wide range of network geographies, e.g., grid networks or clustered ...
Download / Learn more Package Citations See dependency  

27,889

R Packages

239,283

Dependencies

74,019

Author Associations

27,890

Publication Badges

© Copyright since 2022. All right reserved, rpkg.net.  Based in Cambridge, Massachusetts, USA