Learn R Programming

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

riskRegression (version 1.3.7)

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

1.3.7

License

GPL (>= 2)

Last Published

March 10th, 2017

Functions in riskRegression (1.3.7)

CoxFormula

Extract the formula from a Cox model
CoxLP

Compute the linear predictor of a Cox model
CoxN

Extract the number of observations from a Cox model
CoxSpecialStrata

Special character for strata in Cox model
CoxCenter

Extract the mean value of the covariates
CoxDesign

Extract the design matrix used to train a Cox model
CSC

Cause-specific Cox proportional hazard regression
CoxBaseEstimator

Extract the type of estimator for the baseline hazard
CoxVariableName

Extract variable names from a model
FGR

Formula wrapper for crr from cmprsk
Score.list

Score risk predictions
SurvResponseVar

Extract the time and event variable from a Cox model
coef.riskRegression

Extract coefficients from riskRegression model
colCenter_cpp

Apply - by column
IClambda2hazard

Evaluate the influence function for the hazard based on the one of the baseline hazard##'
Melanoma

Malignant melanoma data
iid

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

Compute the average treatment effect using CSC.
boxplot.Score

Boxplot risk quantiles
extractStrata

Extract the information about the strata
model.matrix.phreg

Extract design matrix for phreg objects
penalizedS3

S3-wrapper for S4 function penalized
print.Score

Print Score object
print.ate

Print average treatment effects
ipcw

Estimation of censoring probabilities
plotROC

Plot ROC curves
predict.CauseSpecificCox

Predicting absolute risk from cause-specific Cox models
print.CauseSpecificCox

Print of a Cause-Specific Cox regression model
findP1

Compute the p.value from the distribution under H1
plotCalibration

Plot Calibration curve
plotEffects

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

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

Define the strata for a new dataset
CoxVarCov

Extract the variance covariance matrix of the beta from a Cox model
as.data.table.predictCSC

Turn predictCSC object into a data.table
as.data.table.predictCox

Turn predictCox object into a data.table
qplotAUC

Plot AUC curve
riskRegression

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

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

Apply cumsum in each column
colMultiply_cpp

Apply * by column
plot.predictCSC

Plot predictions from a Cause-specific Cox proportional hazard regression
predict.riskRegression

Predict individual risk.
rowMultiply_cpp

Apply * by row
rowScale_cpp

Apply / by row
print.FGR

Print of a Fine-Gray regression model
colScale_cpp

Apply / by column
colSumsCrossprod

Apply crossprod and colSums
plotAUC

Plot AUC curve
plotBrier

Plot Brier curve
seRobustCox

Computation of standard errors for predictions
print.predictCSC

Print predictions from a Cause-specific Cox proportional hazard regression
print.predictCox

Print predictions from a Cox model
qplot.predictCSC

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

Plot predictions from a Cox model
rowSumsCrossprod

Apply crossprod and rowSums
plot.riskRegression

Plotting predicted risk
predictCox

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

Extrating predicting risks from regression models
sampleData

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

Apply - by row
rowCumSum

Apply cumsum in each row
subjectWeights

Estimation of censoring probabilities at subject specific times
summary.FGR

Summary of a Fine-Gray regression model
summary.riskRegression

Summary of a risk regression model
print.riskRegression

Print function for riskRegression models
print.subjectWeights

Print subject weights
selectJump

Evaluate the influence function at selected times
simMelanoma

Simulate data alike the Melanoma data