fastCV | R Documentation |
Fast, SVD-based cross-validation for high-dimensional data. Finds optimal penalties separately per data block. Useful for initialization.
fastCV(Xblocks, Y, X1 = NULL, kfold = 10, intercept = ifelse(class(Y) == "Surv", FALSE, TRUE), parallel = FALSE, fixedfolds = TRUE, model = NULL, eps = 1e-10, lambdamax= 10^6)
Xblocks |
List of data frames or matrices, representing |
Y |
Response vector: numeric, binary, factor or |
X1 |
Matrix. Dimension |
kfold |
Integer. Desired fold. |
intercept |
Boolean. Should an intercept be included? |
parallel |
Boolean. Should computation be done in parallel? If |
fixedfolds |
Boolean. Should fixed splits be used for reproducibility? |
model |
Character. Any of |
eps |
Scalar. Numerical bound for IWLS convergence. |
lambdamax |
Numeric. Upperbound for lambda. |
Note that this function requires loading the orphaned penalized
package.
This function is kept for reproducibility of results.
Use fastCV2
if you do not have access to penalized
.
Numerical vector containing penalties optimized separately per data block. Useful for initialization. This function uses SVD for fast cross-validation.
optLambdas
, optLambdasWrap
which optimize the penalties jointly. fastCV2
, which does not depend on the penalized package
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.