Description Usage Arguments Value
Cross-validated choice of lam1 and lam2 (over a grid of lambdas)
1 2 3 |
Z |
Otu matrix at group level |
W |
Otu matrix within groups |
y |
Outcome vector |
mu |
Lagrange scaling parameter, default 1 |
groups |
Vector indicating group membership for each feature |
step |
Step-size, default 0.1 |
lam.seq |
Sequence of lambda values, default NULL |
lam.max |
Maximum lambda value, default NULL |
nlam |
2-vector of number of lambdas to test (lam1 and lam2), default (10, 10) |
min.frac |
Fraction of max.lam that the minimum lambda value should be, default 0.01 |
nfolds |
Number of folds for cross validation, default 5 |
maxit |
Maximum number of iterations, default 10000 |
thresh |
Threshold for convergence, default 0.0001 |
std |
Logical indicating whether data should be standardized, default TRUE |
verbose |
If 0, prints nothing; if 1, prints which fold you're on; if 2, also prints a progress bar for lambdas. Default 1 |
List: full fit, lambda sequence, CV-selected lam1, CV-selected lam2, cross-validated prediction error
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.