Learn R Programming

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

riskRegression (version 2018.04.21)

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

8,728

Version

2018.04.21

License

GPL (>= 2)

Maintainer

Thomas Alexander Gerds

Last Published

April 19th, 2018

Functions in riskRegression (2018.04.21)

SurvResponseVar

Extract the time and event variable from a Cox model
coxN

Extract the number of observations from a Cox model
as.data.table.predictCSC

Turn predictCSC object into a data.table
autoplot.ate

Plot predictions from a Cause-specific Cox proportional hazard regression
calcSeCSC

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

Apply * by column
colScale_cpp

Apply / by column
influenceCoxTest

Influence test [Experimental!!]
boot2pvalue

Compute the p.value from the distribution under H1
boxplot.Score

Boxplot risk quantiles
coxStrata

Define the strata for a new dataset
coxSpecialStrata

Special character for strata in Cox model
as.data.table.predictCox

Turn predictCox object into a data.table
colCenter_cpp

Apply - by column
autoplot.predictCSC

Plot predictions from a Cause-specific Cox proportional hazard regression
autoplot.predictCox

Plot predictions from a Cox model
calcSeCox

Computation of standard errors for predictions
colCumSum

Apply cumsum in each column
plotROC

Plot ROC curves
discreteRoot

Dichotomic search for monotone function
coxBaseEstimator

Extract the type of estimator for the baseline hazard
coxFormula

Extract the formula from a Cox model
plotEffects

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

Extract the mean value of the covariates
coxDesign

Extract the design matrix used to train a Cox model
coxVarCov

Extract the variance covariance matrix of the beta from a Cox model
predict.FGR

Predict subject specific risks (cumulative incidence) based on Fine-Gray regression model
ipcw

Estimation of censoring probabilities
coxVariableName

Extract variable names from a model
predict.riskRegression

Predict individual risk.
colSumsCrossprod

Apply crossprod and colSums
penalizedS3

S3-wrapper for S4 function penalized
print.predictCSC

Print predictions from a Cause-specific Cox proportional hazard regression
model.matrix.phreg

Extract design matrix for phreg objects
print.predictCox

Print predictions from a Cox model
selectJump

Evaluate the influence function at selected times
plot.riskRegression

Plotting predicted risk
confBandCox

Compute quantiles of a gaussian process
plotAUC

ggplot AUC curve
simMelanoma

Simulate data alike the Melanoma data
getSplitMethod

Input for data splitting algorithms
iidCox

Extract i.i.d. decomposition from a Cox model
extractStrata

Extract the information about the strata
print.ate

Print average treatment effects
predictRisk

Extrating predicting risks from regression models
print.influenceCoxTest

Print the results of the influence test
plotRisk

plot predicted risks
print.riskRegression

Print function for riskRegression models
print.CauseSpecificCox

Print of a Cause-Specific Cox regression model
predict.CauseSpecificCox

Predicting absolute risk from cause-specific Cox models
summary.FGR

Summary of a Fine-Gray regression model
summary.riskRegression

Summary of a risk regression model
print.subjectWeights

Print subject weights
rowSumsCrossprod

Apply crossprod and rowSums
predictCox

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

Plot Brier curve
rsquared

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

Apply * by slice
rowCenter_cpp

Apply - by row
rowCumSum

Apply cumsum in each row
plotCalibration

Plot Calibration curve
sliceScale_cpp

Apply / by slice
predictCoxPL

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

Apply * by row
print.FGR

Print of a Fine-Gray regression model
print.Score

Print Score object
sampleData

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

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

Reconstruct the original dataset
selectCox

Backward variable selection in the Cox regression model
rowScale_cpp

Apply / by row
splitStrataVar

Reconstruct each of the strata variables
subjectWeights

Estimation of censoring probabilities at subject specific times
ate

Compute the average treatment effects via the g-formula
CSC

Cause-specific Cox proportional hazard regression
coef.CauseSpecificCox

Extract coefficients from a Cause-Specific Cox regression model
FGR

Formula wrapper for crr from cmprsk
coef.riskRegression

Extract coefficients from riskRegression model
Melanoma

Malignant melanoma data
coxLP

Compute the linear predictor of a Cox model
Paquid

Paquid sample
Score.list

Score risk predictions