View source: R/cv.big_pls_cox.R
| cv.big_pls_cox | R Documentation |
Performs K-fold cross-validation for models fitted with
big_pls_cox() or big_pls_cox_gd(). The routine mirrors the behaviour of
the cross-validation helpers available in the original plsRcox
package while operating on big.matrix inputs.
cv.big_pls_cox(
data,
nfold = 5L,
nt = 5L,
keepX = NULL,
givefold,
allCVcrit = FALSE,
times.auc = NULL,
times.prederr = NULL,
method = c("efron", "breslow"),
verbose = TRUE,
...
)
cv.big_pls_cox_gd(
data,
nfold = 5L,
nt = NULL,
keepX = NULL,
givefold,
allCVcrit = FALSE,
times.auc = NULL,
times.prederr = NULL,
method = c("efron", "breslow"),
verbose = TRUE,
...
)
data |
A list with entries |
nfold |
Integer giving the number of folds to use. |
nt |
Number of latent components to evaluate. |
keepX |
Optional integer vector passed to the modelling function to
enforce naive sparsity (see |
givefold |
Optional list of fold indices. When supplied, it must contain
|
allCVcrit |
Logical; when |
times.auc |
Optional time grid used for time-dependent AUC computations. Defaults to an equally spaced grid between zero and the maximum observed time. |
times.prederr |
Optional time grid used for prediction error curves.
Defaults to the same grid as |
method |
Ties handling method passed to |
verbose |
Logical; print progress information. |
... |
Additional arguments forwarded to the underlying modelling function. |
The function returns cross-validated estimates for each component
(including the null model) using either big_pls_cox() or
big_pls_cox_gd(), depending on the engine argument. The implementation
reuses the internal indicators (getIndicCV, getIndicCViAUCSurvROCTest)
to provide consistent metrics with the legacy plsRcox helpers.
A list containing cross-validation summaries. When allCVcrit = FALSE, the list holds
nt |
Number of components assessed. |
cv.error10 |
Mean iAUC of survivalROC across folds for 0 to
|
cv.se10 |
Estimated standard errors for |
folds |
Fold assignments. |
lambda.min10 |
Component minimising the cross-validated error. |
lambda.1se10 |
Largest component within one standard error of the optimum. |
When allCVcrit = TRUE, the full set of 14 criteria (log partial
likelihood, iAUC variants and Brier scores) is returned together with their
associated standard errors and one-standard-error selections.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.