err_back: Internal function for crossval_sparsity

Description Usage Arguments Details

View source: R/Crossval_OmicsPLS.R

Description

Internal function for crossval_sparsity

Usage

1
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.


OmicsPLS documentation built on May 19, 2021, 5:08 p.m.