getCutoffAutoKM.list | R Documentation |
Run the function "getCutoffAutoKM" for a list of models. More information in "?getCutoffAutoKM".
getCutoffAutoKM.list(lst_results)
lst_results |
List of lists. Result of getAutoKM.list() function. |
A list where each element corresponds to the result of the
getCutoffAutoKM
function applied to each model in the input list. The structure and
content of each element will be consistent with the output of the
getCutoffAutoKM
function.
Pedro Salguero Garcia. Maintainer: pedsalga@upv.edu.es
Kaplan_1958Coxmos
data("X_proteomic")
data("Y_proteomic")
set.seed(123)
index_train <- caret::createDataPartition(Y_proteomic$event, p = .5, list = FALSE, times = 1)
X_train <- X_proteomic[index_train,1:50]
Y_train <- Y_proteomic[index_train,]
X_test <- X_proteomic[-index_train,1:50]
Y_test <- Y_proteomic[-index_train,]
splsicox.model <- splsicox(X_train, Y_train, n.comp = 2, penalty = 0.5, x.center = TRUE,
x.scale = TRUE)
splsdrcox.model <- splsdrcox_penalty(X_train, Y_train, n.comp = 2, penalty = 0.5, x.center = TRUE,
x.scale = TRUE)
lst_models = list("sPLSICOX" = splsicox.model, "sPLSDRCOX" = splsdrcox.model)
lst_results = getAutoKM.list(type = "LP", lst_models)
getCutoffAutoKM.list(lst_results)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.