Package: pec 2023.04.12

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. Most of the 'pec' functionality has been moved to 'riskRegression'.

Authors:Thomas A. Gerds

pec_2023.04.12.tar.gz
pec_2023.04.12.zip(r-4.5)pec_2023.04.12.zip(r-4.4)
pec_2023.04.12.tgz(r-4.4-x86_64)pec_2023.04.12.tgz(r-4.4-arm64)
pec_2023.04.12.tar.gz(r-4.5-noble)pec_2023.04.12.tar.gz(r-4.4-noble)
pec_2023.04.12.tgz(r-4.4-emscripten)
pec.pdf |pec.html
pec/json (API)

# Install 'pec' in R:
install.packages('pec', repos = c('https://tagteam.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/tagteam/pec/issues

Datasets:
  • GBSG2 - German Breast Cancer Study Group 2
  • Pbc3 - Pbc3 data
  • cost - Copenhagen Stroke Study
  • threecity - Threecity data

On CRAN:

7.35 score 23 packages 474 scripts 6.8k downloads 56 mentions 20 exports 103 dependencies

Last updated 2 years agofrom:0648d7ce1f. Checks:OK: 1 WARNING: 5. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 04 2024
R-4.5-win-x86_64WARNINGNov 04 2024
R-4.5-linux-x86_64WARNINGNov 04 2024
R-4.4-win-x86_64WARNINGNov 04 2024
R-4.4-mac-x86_64WARNINGNov 04 2024
R-4.4-mac-aarch64WARNINGNov 04 2024

Exports:calPlotcindexcoxboostcrpsibsipcwpecpecCforestpecCtreepecRpartplotPredictEventProbplotPredictSurvProbpredictEventProbpredictLifeYearsLostpredictRestrictedMeanTimepredictSurvProbR2resolvesplitMethodselectCoxsimCost

Dependencies:backportsbase64encbslibcachemcheckmatecliclustercmprskcodetoolscolorspacedata.tablediagramdigestdoParallelevaluatefansifarverfastmapfontawesomeforeachforeignFormulafsfuturefuture.applyggplot2globalsgluegridExtragtablehighrHmischtmlTablehtmltoolshtmlwidgetsisobanditeratorsjquerylibjsonliteKernSmoothknitrlabelinglatticelavalifecyclelistenvmagrittrMASSMatrixMatrixModelsmemoisemetsmgcvmimemultcompmunsellmvtnormnlmennetnumDerivparallellypillarpkgconfigplotrixpolsplineprodlimprogressrPublishquantregR6rangerrappdirsRColorBrewerRcppRcppArmadilloRcppEigenriskRegressionrlangrmarkdownrmsrpartrstudioapisandwichsassscalesshapeSparseMSQUAREMstringistringrsurvivalTH.datatibbletimeregtinytexutf8vctrsviridisviridisLitewithrxfunyamlzoo

Readme and manuals

Help Manual

Help pageTopics
Calibration plots for right censored datacalPlot
Concordance index for right censored survival time datacindex
Copenhagen Stroke Studycost
Formula interface for function 'CoxBoost' of package 'CoxBoost'.coxboost
Summarizing prediction error curvescrps ibs
German Breast Cancer Study Group 2GBSG2
Estimation of censoring probabilitiesipcw ipcw.aalen ipcw.cox ipcw.marginal ipcw.none ipcw.nonpar
Pbc3 dataPbc3
Prediction error curvespec
S3-wrapper function for cforest from the party packagepecCforest
S3-Wrapper for ctree.pecCtree
Predict survival based on rpart tree objectpecRpart
Plot objects obtained with 'calPlot'plot.calibrationPlot
Plotting prediction error curvesplot.pec
Plotting predicted survival curves.plotPredictEventProb
Plotting predicted survival curves.plotPredictSurvProb
Predicting event probabilities (cumulative incidences) in competing risk models.predictEventProb predictEventProb.CauseSpecificCox predictEventProb.FGR predictEventProb.prodlim predictEventProb.rfsrc predictEventProb.riskRegression
Predicting life years lost (cumulative cumulative incidences) in competing risk models.predictLifeYearsLost predictLifeYearsLost.CauseSpecificCox predictLifeYearsLost.FGR predictLifeYearsLost.prodlim predictLifeYearsLost.rfsrc predictLifeYearsLost.riskRegression
Predicting restricted mean timepredictRestrictedMeanTime predictRestrictedMeanTime.aalen predictRestrictedMeanTime.cox.aalen predictRestrictedMeanTime.coxph predictRestrictedMeanTime.cph predictRestrictedMeanTime.default predictRestrictedMeanTime.matrix predictRestrictedMeanTime.pecCtree predictRestrictedMeanTime.pecRpart predictRestrictedMeanTime.prodlim predictRestrictedMeanTime.psm predictRestrictedMeanTime.rfsrc predictRestrictedMeanTime.riskRegression predictRestrictedMeanTime.selectCox predictRestrictedMeanTime.survfit
Predicting survival probabilitiespredictSurvProb predictSurvProb.aalen predictSurvProb.cox.aalen predictSurvProb.coxph predictSurvProb.cph predictSurvProb.default predictSurvProb.matrix predictSurvProb.pecCforest predictSurvProb.pecCtree predictSurvProb.pecRpart predictSurvProb.prodlim predictSurvProb.psm predictSurvProb.rfsrc predictSurvProb.riskRegression predictSurvProb.selectCox predictSurvProb.survfit
Printing a `pec' (prediction error curve) object.print.pec summary.pec
Explained variation for survival modelsR2
Retrospective risk reclassification tablereclass
Resolve the splitMethod for estimation of prediction performanceresolvesplitMethod
Backward variable selection in the Cox regression modelselectCox
Stepwise variable selection in the Fine & Gray regression competing risk modelselectFGR
Simulate COST alike datasimCost
Drawing bootstrapped cross-validation curves and the .632 or .632plus error of models. The prediction error for an optional benchmark model can be added together with bootstrapped cross-validation error and apparent errors.Special
threecity datathreecity