Description Usage Arguments Value Examples
selection of the regularization parameters (lambda1 and lambda2) of the lori function by cross-validation
1 2 3 |
Y |
[matrix, data.frame] abundance table (nxp) |
cov |
[matrix, data.frame] design matris (npxq) |
intercept |
[boolean] whether an intercept should be fitted, default value is FALSE |
reff |
[boolean] whether row effects should be fitted, default value is TRUE |
ceff |
[boolean] whether column effects should be fitted, default value is TRUE |
rank.max |
[integer] maximum rank of interaction matrix, default is 2 |
N |
[integer] number of cross-validation folds |
len |
[integer] the size of the grid |
prob |
[numeric in (0,1)] the proportion of entries to remove for cross-validation |
algo |
type of algorithm to use, either one of "mcgd" (mixed coordinate gradient descent, adapted to large dimensions) or "alt" (alternating minimization, adapted to small dimensions) |
thresh |
[positive number] convergence threshold, default is 1e-5 |
maxit |
[integer] maximum number of iterations, default is 100 |
trace.it |
[boolean] whether information about convergence should be printed |
parallel |
[boolean] whether the N-fold cross-validation should be parallelized, default value is TRUE |
A list with the following elements
lambda1 |
regularization parameter estimated by cross-validation for nuclear norm penalty (interaction matrix) |
lambda2 |
regularization parameter estimated by cross-validation for l1 norm penalty (main effects) |
errors |
a table containing the prediction errors for all pairs of parameters |
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.