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 07 Jun. 2026.
Previous versions and publish date:
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

xmlr  
Read, Write and Work with 'XML' Data
'XML' package for creating and reading and manipulating 'XML', with an object model based on 'Refere ...
Download / Learn more Package Citations See dependency  
roxygen2  
In-Line Documentation for R
Generate your Rd documentation, 'NAMESPACE' file, and collation field using specially formatted com ...
Download / Learn more Package Citations See dependency  
embryogrowth  
Tools to Analyze the Thermal Reaction Norm of Embryo Growth
Tools to analyze the embryo growth and the sexualisation thermal reaction norms. See ...
Download / Learn more Package Citations See dependency  
curtailment  
Finds Binary Outcome Designs Using Stochastic Curtailment
Finds single- and two-arm designs using stochastic curtailment, as described by Law et al. (2022) ...
Download / Learn more Package Citations See dependency  
gRain  
Bayesian Networks
Probability propagation in graphical independence networks, also known as Bayesian networks or prob ...
Download / Learn more Package Citations See dependency  
keep  
Arrays with Better Control over Dimension Dropping
Provides arrays with flexible control over dimension dropping when subscripting. ...
Download / Learn more Package Citations See dependency  

27,372

R Packages

233,548

Dependencies

72,820

Author Associations

27,205

Publication Badges

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