Skip to content

pec

2025.06.24Package record

Prediction Error Curves for Risk Prediction Models in Survival Analysis

16packages dependsuggested by 10
152.2Kdownloads / year
0.1%test coverage
13/13flavors OK

Overview

About

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'.

Install

Health

CRAN checks
13OK
Slowest check: 3.5 min · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 2025.06.24
READMEYes · 68 wordsVignettesNoNEWSNoCitation fileYes · cites a publicationWebsitenot declared in DESCRIPTION
Cites a JSS article
Help pages
29
Examples that run
95%19 run in a plain check (1 of them under a condition) · 1 never run
Exported functions with examples
84%
Documented parameters
100%
Return-value docs
95%
Help pages citing references
52%

Downloads

152.2K
CRAN downloads in the past year
Rank #1,121 · ~417/day · ~12.7K/mo
Daily download trend is not available in this view yet.
9.7K30 days
31.8K90 days
152.2K1 year
Compare downloads with other packages →
Also on1.7K r2u206 autocran5.8K conda_forge199 c2d4u

Dependencies

Declared dependencies
9 external dependencies (excludes base and recommended)

Installing pec adds 87 packages (43 with compiled code, 84 MB of source tarballs). Heaviest: stringi 11 MB, TH.data 8.2 MB, ggplot2 6.0 MB.

Depends (2)
R >= 2.9.0prodlim
LinkingTo (0)
none
Suggests (4)
Enhances (0)
none
Reverse dependencies
16direct
21indirect
Imports 16
Suggested by 10
Show all 26 packagesHide all 26 packages
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

Datasets

People & History

People (1)
Author, Maintainer since 1.0.7 (2008)
Listed in earlier versions (1)
Gerds
no longer listed · 2025.06.24
Releases (29)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 2025.06.24Latest
    record
    2025-07-24 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 2023.04.12
    record
    2023-04-11 · diff ↗ ·
    removed 1 export
    selectFGR
  • 2022.05.04
    record
    2022-05-04 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 2022.03.06
    record
    2022-03-08 · diff ↗
  • 2021.10.11
    record
    2021-10-11 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 2020.11.17
    record
    2020-11-16 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 2019.11.03
    record
    2019-11-03 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 2018.07.26
    record
    2018-07-26 · diff ↗
Show 36 earlier eventsHide 36 earlier events
  • R
    R 3.5.0 released · 2018-04-23
  • 2018.04.18
    record
    2018-04-18 · diff ↗ ·
    removed 1 export
    wallyPlot
  • 2.5.4
    record
    2017-08-08 · diff ↗
  • R
    R 3.4.0 released · 2017-04-21
  • 2.5.3
    record
    2017-03-06 · diff ↗
  • 2.4.9
    record
    2016-05-14 · diff ↗
  • R
    R 3.3.0 released · 2016-05-03
  • 2.4.7
    record
    2015-10-05 · diff ↗ ·
    added 2 exports
    predictRestrictedMeanTime, wallyPlot
  • R
    R 3.2.0 released · 2015-04-16
  • 2.4.4
    record
    2014-12-05 · diff ↗ ·
    added 2 exports
    pecCtree, pecRpart
  • 2.3.7
    record
    2014-09-05 · diff ↗ ·
    added 2 exports
    calPlot, simCost
  • R
    R 3.1.0 released · 2014-04-10
  • R
    R 3.0.0 released · 2013-04-03
  • 2.2.9
    record
    2013-03-25 · diff ↗ ·
    added 2 exports
    predictLifeYearsLost, selectFGR
  • 2.2.6
    record
    2013-01-08 · diff ↗
  • 2.2.5
    record
    2013-01-08 · diff ↗ ·
    added 1 export
    coxboost
  • 2.2.4
    record
    2012-10-30 · diff ↗
  • 2.2.2
    record
    2012-09-18 · diff ↗
  • 2.1.9
    record
    2012-08-28 · diff ↗
  • 2.1.8
    record
    2012-08-27 · diff ↗
  • R
    R 2.15.0 released · 2012-03-30
  • 2.1.7
    record
    2012-01-30 · diff ↗
  • 2.1.2
    record
    2011-12-22 · diff ↗
  • 2.1.1
    record
    2011-12-15 · diff ↗ ·
    added 1 export
    plotPredictEventProb
  • R
    R 2.14.0 released · 2011-10-31
  • 2.0.8
    record
    2011-10-12 · diff ↗ ·
    added 7 exports
    ibs, cindex, resolvesplitMethod, predictEventProb, selectCox, pecCforest, plotPredictSurvProb
  • R
    R 2.13.0 released · 2011-04-13
  • R
    R 2.12.0 released · 2010-10-15
  • R
    R 2.11.0 released · 2010-04-22
  • R
    R 2.10.0 released · 2009-10-26
  • 1.1.1
    record
    2009-06-24 · diff ↗
  • R
    R 2.9.0 released · 2009-04-17
  • 1.1.0
    record
    2009-04-15 · diff ↗
  • R
    R 2.8.0 released · 2008-10-20
  • 1.0.7
    record
    2008-07-28
  • R
    R 2.7.0 released · 2008-04-22

Package metadata

First published
2008-07-28
Total releases
29 / 18 yrs
License
GPL (>= 2) OSI
Minimum R
≥ 2.9.0
Bundled data
104 KB / 4 files
Download size
167 KB
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("pec")

The package provides a citation file that builds its entry when R runs it. Run citation() to see it.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for pec version 2025.06.24 [Data set]. HJJB, LLC. Data release v2026-10-17. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-17, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy