Learn R Programming

doMIsaul (version 1.0.1)

CVE_LP: Cross-validation for cox regression using the linear predictor estimator with wrapper for warnings handling

Description

Cross-validation for cox regression using the linear predictor estimator with wrapper for warnings handling

Usage

CVE_LP(x)

Arguments

x

list of 3 named elements : data (data containing columns time and status), partition (dataframe with 1 column), nfolds (number of fold for cross-validation).

Value

numeric, cross-validation error

Examples

Run this code
# NOT RUN {
data(cancer, package = "survival")
cancer$status <- cancer$status - 1
part <- data.frame(Cl= factor(cancer[, "sex"]), stringsAsFactors = TRUE)
CVE_LP(list(data = cancer, partition = part, nfolds = 10))
# }

Run the code above in your browser using DataLab