Learn R Programming

⚠️There's a newer version (2025.09.17) of this package.Take me there.

riskRegression (version 2019.11.03)

Risk Regression Models and Prediction Scores for Survival Analysis with Competing Risks

Description

Implementation of the following methods for event history analysis. Risk regression models for survival endpoints also in the presence of competing risks are fitted using binomial regression based on a time sequence of binary event status variables. A formula interface for the Fine-Gray regression model and an interface for the combination of cause-specific Cox regression models. A toolbox for assessing and comparing performance of risk predictions (risk markers and risk prediction models). Prediction performance is measured by the Brier score and the area under the ROC curve for binary possibly time-dependent outcome. Inverse probability of censoring weighting and pseudo values are used to deal with right censored data. Lists of risk markers and lists of risk models are assessed simultaneously. Cross-validation repeatedly splits the data, trains the risk prediction models on one part of each split and then summarizes and compares the performance across splits.

Copy Link

Version

Install

install.packages('riskRegression')

Monthly Downloads

16,575

Version

2019.11.03

License

GPL (>= 2)

Maintainer

Thomas Alexander Gerds

Last Published

November 4th, 2019

Functions in riskRegression (2019.11.03)

SurvResponseVar

Extract the time and event variable from a Cox model
colMultiply_cpp

Apply * by column
colCumSum

Apply cumsum in each column
as.data.table.ate

Turn ate Object Into a data.table
colCenter_cpp

Apply - by column
as.data.table.predictCox

Turn predictCox Object Into a data.table
confBandCox

Compute quantiles of a gaussian process
colCumProd

Apply cumprod in each column
ate

Compute the Average Treatment Effects Via
confint.ate

Confidence Intervals and Confidence Bands for the Predicted Absolute Risk (Cumulative Incidence Function)
autoplot.Score

ggplot AUC curve
as.data.table.influenceTest

Turn influenceTest Object Into a data.table
Score.list

Score risk predictions
autoplot.ate

Plot Average Risks
plot.riskRegression

Plotting predicted risk
coxFormula

Extract the formula from a Cox model
autoplot.predictCox

Plot Predictions From a Cox Model
coxCenter

Extract the mean value of the covariates
autoplot.predictCSC

Plot Predictions From a Cause-specific Cox Proportional Hazard Regression
coxVarCov

Extract the variance covariance matrix of the beta from a Cox model
coxStrataLevel

Returns the name of the strata in Cox model
as.data.table.predictCSC

Turn predictCSC Object Into a data.table
ipcw

Estimation of censoring probabilities
coxStrata

Define the strata for a new dataset
plotAUC

Plot of time-dependent AUC curves
coxVariableName

Extract variable names from a model
model.matrix.phreg

Extract design matrix for phreg objects
boot2pvalue

Compute the p.value from the distribution under H1
coxBaseEstimator

Extract the type of estimator for the baseline hazard
boxplot.Score

Boxplot risk quantiles
confint.predictCox

Confidence Intervals and Confidence Bands for the predicted Survival/Cumulative Hazard
coxSpecial

Special characters in Cox model
coxN

Extract the number of observations from a Cox model
plotEffects

Plotting time-varying effects from a risk regression model.
calcSeCSC

Standard error of the absolute risk predicted from cause-specific Cox models
plotPredictRisk

Plotting predicted risks curves.
calcSeCox

Computation of standard errors for predictions
colScale_cpp

Apply / by column
print.IPA

Print IPA object
penalizedS3

S3-wrapper for S4 function penalized
model.matrix.cph

Extract design matrix for cph objects
coef.CauseSpecificCox

Extract coefficients from a Cause-Specific Cox regression model
confint.influenceTest

Confidence Intervals and Confidence Bands for the Difference Between Two Estimates
discreteRoot

Dichotomic search for monotone function
coef.riskRegression

Extract coefficients from riskRegression model
confint.predictCSC

Confidence Intervals and Confidence Bands for the Predicted Absolute Risk (Cumulative Incidence Function)
plotROC

Plot ROC curves
plotRisk

plot predicted risks
print.Score

Print Score object
predictCoxPL

Computation of survival probabilities from Cox regression models using the product limit estimator.
getSplitMethod

Input for data splitting algorithms
print.ate

Print Average Treatment Effects
coxLP

Compute the linear predictor of a Cox model
plotBrier

Plot Brier curve
coxModelFrame

Extract the design matrix used to train a Cox model
plotCalibration

Plot Calibration curve
colSumsCrossprod

Apply crossprod and colSums
print.influenceTest

Output of the DIfference Between Two Estimates
predictRisk

Extrating predicting risks from regression models
riskRegression

Risk Regression Fits a regression model for the risk of an event -- allowing for competing risks.
rowSumsCrossprod

Apply crossprod and rowSums
rowScale_cpp

Apply / by row
predict.CauseSpecificCox

Predicting Absolute Risk from Cause-Specific Cox Models
summary.ate

Summary Average Treatment Effects
rowPaste

Collapse Rows of Characters.
simMelanoma

Simulate data alike the Melanoma data
simActiveSurveillance

Simulate data of a hypothetical active surveillance prostate cancer study
predict.FGR

Predict subject specific risks (cumulative incidence) based on Fine-Gray regression model
print.predictCSC

Print Predictions From a Cause-specific Cox Proportional Hazard Regression
print.CauseSpecificCox

Print of a Cause-Specific Cox regression model
riskRegression.options

Global options for riskRegression
iidCox

Extract iid decomposition from a Cox model
sampleData

Simulate data with binary or time-to-event outcome
transformCIBP

Compute Confidence Intervals/Bands and P-values After a Transformation
transformIID

Compute Influence Functions after Transformation
influenceTest

Influence test [Experimental!!]
print.predictCox

Print Predictions From a Cox Model
rowCumSum

Apply cumsum in each row
selectCox

Backward variable selection in the Cox regression model
rowMultiply_cpp

Apply * by row
transformP

Compute P-values After a Transformation
selectJump

Evaluate the influence function at selected times
summary.riskRegression

Summary of a risk regression model
predictCox

Fast computation of survival probabilities, hazards and cumulative hazards from Cox regression models
predict.riskRegression

Predict individual risk.
transformSE

Compute Standard Errors after Transformation
reconstructData

Reconstruct the original dataset
print.FGR

Print of a Fine-Gray regression model
riskLevelPlot

Level plots for risk prediction models
print.subjectWeights

Print subject weights
rowCenter_cpp

Apply - by row
print.riskRegression

Print function for riskRegression models
rowCumProd

Apply cumprod in each row
sliceScale_cpp

Apply / by slice
transformCI

Compute Confidence Intervals using a transformation
sliceMultiply_cpp

Apply * by slice
terms.phreg

Extract terms for phreg objects
summary.FGR

Summary of a Fine-Gray regression model
splitStrataVar

Reconstruct each of the strata variables
subjectWeights

Estimation of censoring probabilities at subject specific times
subsetIndex

Extract Specific Elements From An Object
Cforest

S3-wrapper function for cforest from the party package
SuperPredictor

Formula interface for SuperLearner::SuperLearner
CSC

Cause-specific Cox proportional hazard regression
Melanoma

Malignant melanoma data
SmcFcs

SmcFcs
FGR

Formula wrapper for crr from cmprsk
Paquid

Paquid sample
IPA

Explained variation for settings with binary, survival and competing risk outcome
Ctree

S3-Wrapper for ctree.