Cross-validated Z-residuals for Standard Cox Models
Source:R/CV.Zresidual.coxph.survival.R
CV_Zresidual_coxph_survival.RdInternal function to compute cross-validated Z-residuals for standard Cox proportional hazards models (without frailty).
Arguments
- fit.coxph
A fitted
survival::coxphmodel object.- data
Optional data frame containing the data. Required if the original model was fit without specifying the
dataargument or iffoldlistis supplied.- nfolds
Integer. Number of folds for cross-validation (K in K-fold CV).
- foldlist
Optional list specifying custom fold assignments.
- n.rep
Integer. Number of repeated cross-validations.
- ...
Additional arguments.