err_back {OmicsPLS} | R Documentation |
Internal function for crossval_sparsity
Description
Internal function for crossval_sparsity
Usage
err_back(dat, index, p, q)
Arguments
dat |
Matrix with numeric row/col names |
index |
Get from which(..., arr.ind = T) |
p |
Number of variables in X |
q |
Number of variables in Y |
Details
This function finds the most sparse combination of keepx and keepy (min(keepx/p + keepy/q)) that yields cov(T,U) within 1 std error of the largest cov(T,U). Note that it's possible that the resulting keepx or keepy is larger than the orignal when p >> q or p << q.
[Package OmicsPLS version 2.0.2 Index]