cox_calibration_stats {survcompare}R Documentation

Calibration stats of a fitted Cox PH model

Description

Computes calibration alpha and slope for a fitted coxph model in the data.

Crowson, C. S., Atkinson, E. J., & Therneau, T. M. (2016). Assessing calibration of prognostic risk scores. Statistical methods in medical research, 25(4), 1692-1706.

https://journals.sagepub.com/doi/pdf/10.1177/0962280213497434

Usage

cox_calibration_stats(cox_model, test_data)

Arguments

cox_model

fitted cox model, namely, coxph() object

test_data

test data, should be a data frame with "time" and "event" columns for survival outcome

Value

c(calibration alpha, calibration slope)


[Package survcompare version 0.1.2 Index]