select_coefficients.RdThis function assesses the original coefficients against the ones obtained
from permutated samples as returned by permutateLOO() (with the parameter
return_coeffs set to TRUE). It returns a vector of weights as well as a
dichotomic mask reflecting which values pass a given threshold.
select_coefficients(coeffs, permutated_coeffs, threshold = 0.05)
| coeffs | Coefficients can either be
passed as a list (as one created, for example, by |
|---|---|
| permutated_coeffs | A list, such as an object created by
|
| threshold | Significance threshold against which evaluate the coefficients. It is assumed to be two-tailed, and defaults to 0.05. |
A list with two entries: coeffs, i.e. the values of coefficients passing the statistical threshold, and mask, reporting which coefficients are retained.