Learn R Programming

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

riskRegression (version 2020.02.05)

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

9,120

Version

2020.02.05

License

GPL (>= 2)

Last Published

February 8th, 2020

Functions in riskRegression (2020.02.05)

SuperPredictor

Formula interface for SuperLearner::SuperLearner
IPA

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

S3-Wrapper for ctree.
SmcFcs

SmcFcs
Melanoma

Malignant melanoma data
autoplot.ate

Plot Average Risks
autoplot.Score

ggplot AUC curve
ate

Compute the Average Treatment Effects Via
FGR

Formula wrapper for crr from cmprsk
as.data.table.predictCox

Turn predictCox Object Into a data.table
autoplot.predictCSC

Plot Predictions From a Cause-specific Cox Proportional Hazard Regression
autoplot.predictCox

Plot Predictions From a Cox Model
Score.list

Score risk predictions
colCumSum

Apply cumsum in each column
boot2pvalue

Compute the p.value from the distribution under H1
Paquid

Paquid sample
boxplot.Score

Boxplot risk quantiles
colMultiply_cpp

Apply * by column
coxCenter

Extract the mean value of the covariates
coef.CauseSpecificCox

Extract coefficients from a Cause-Specific Cox regression model
as.data.table.influenceTest

Turn influenceTest Object Into a data.table
CSC

Cause-specific Cox proportional hazard regression
Cforest

S3-wrapper function for cforest from the party package
confint.influenceTest

Confidence Intervals and Confidence Bands for the Difference Between Two Estimates
model.matrix.phreg

Extract design matrix for phreg objects
predict.riskRegression

Predict individual risk.
coxLP

Compute the linear predictor of a Cox model
confint.predictCSC

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

S3-wrapper for S4 function penalized
coxModelFrame

Extract the design matrix used to train a Cox model
predictCox

Fast computation of survival probabilities, hazards and cumulative hazards from Cox regression models
SurvResponseVar

Extract the time and event variable from a Cox model
print.predictCSC

Print Predictions From a Cause-specific Cox Proportional Hazard Regression
coef.riskRegression

Extract coefficients from riskRegression model
as.data.table.ate

Turn ate Object Into a data.table
confint.predictCox

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

Extract iid decomposition from a Cox model
colCenter_cpp

Apply - by column
coxStrata

Define the strata for a new dataset
confBandCox

Compute quantiles of a gaussian process
confint.ate

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

Returns the name of the strata in Cox model
colCumProd

Apply cumprod in each column
as.data.table.predictCSC

Turn predictCSC Object Into a data.table
coxFormula

Extract the formula from a Cox model
print.predictCox

Print Predictions From a Cox Model
print.riskRegression

Print function for riskRegression models
print.subjectWeights

Print subject weights
predict.FGR

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

Predicting Absolute Risk from Cause-Specific Cox Models
riskRegression

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

Influence test [Experimental!!]
riskRegression.options

Global options for riskRegression
rowPaste

Collapse Rows of Characters.
splitStrataVar

Reconstruct each of the strata variables
discreteRoot

Dichotomic search for monotone function
coxN

Extract the number of observations from a Cox model
coxSpecial

Special characters in Cox model
coxBaseEstimator

Extract the type of estimator for the baseline hazard
plotROC

Plot ROC curves
plotCalibration

Plot Calibration curve
plotRisk

plot predicted risks
plotBrier

Plot Brier curve
rowScale_cpp

Apply / by row
subjectWeights

Estimation of censoring probabilities at subject specific times
simActiveSurveillance

Simulate data of a hypothetical active surveillance prostate cancer study
simMelanoma

Simulate data alike the Melanoma data
transformIID

Compute Influence Functions after Transformation
getSplitMethod

Input for data splitting algorithms
summary.ate

Summary Average Treatment Effects
summary.Score

Summary of prediction performance metrics
rowCenter_cpp

Apply - by row
print.influenceTest

Output of the DIfference Between Two Estimates
sliceScale_cpp

Apply / by slice
sliceMultiply_cpp

Apply * by slice
print.ate

Print Average Treatment Effects
rowCumProd

Apply cumprod in each row
transformP

Compute P-values After a Transformation
calcSeCSC

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

Apply / by column
coxVarCov

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

Computation of standard errors for predictions
colSumsCrossprod

Apply crossprod and colSums
transformCI

Compute Confidence Intervals using a transformation
transformSE

Compute Standard Errors after Transformation
transformCIBP

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

Extract variable names from a model
plotAUC

Plot of time-dependent AUC curves
plot.riskRegression

Plotting predicted risk
ipcw

Estimation of censoring probabilities
model.matrix.cph

Extract design matrix for cph objects
plotPredictRisk

Plotting predicted risks curves.
print.IPA

Print IPA object
predictCoxPL

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

Plotting time-varying effects from a risk regression model.
print.FGR

Print of a Fine-Gray regression model
print.CauseSpecificCox

Print of a Cause-Specific Cox regression model
reconstructData

Reconstruct the original dataset
print.Score

Print Score object
predictRisk

Extrating predicting risks from regression models
riskLevelPlot

Level plots for risk prediction models
rowSumsCrossprod

Apply crossprod and rowSums
rowCumSum

Apply cumsum in each row
rowMultiply_cpp

Apply * by row
sampleData

Simulate data with binary or time-to-event outcome
terms.phreg

Extract terms for phreg objects
summary.riskRegression

Summary of a risk regression model
selectCox

Backward variable selection in the Cox regression model
subsetIndex

Extract Specific Elements From An Object
selectJump

Evaluate the influence function at selected times
summary.FGR

Summary of a Fine-Gray regression model