CVE_LP {doMIsaul}R Documentation

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

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))

[Package doMIsaul version 1.0.1 Index]