Description Usage Arguments Value Author(s) References Examples
Chooses optimal tuning parameter lambda for function dLDA based on the m-fold cross-validation mean squared error
1 2 |
Xtrain |
A Nxp data matrix; N observations on the rows and p features on the columns |
Ytrain |
A N vector containing the group labels. Should be coded as 1,2,...,G, where G is the number of groups |
lambdaval |
Optional user-supplied sequence of tuning parameters; the default value is NULL and |
nl |
Number of lambda values; the default value is 50 |
msep |
Number of cross-validation folds; the default value is 5 |
eps |
Tolerance level for the convergence of the optimization algorithm; the default value is 1e-6 |
l_min_ratio |
Smallest value for lambda, as a fraction of |
myseed |
Optional specification of random seed for generating the folds; the default value is NULL. |
prior |
A logical indicating whether to put larger weights to the groups of larger size; the default value is TRUE. |
rho |
A scalar that ensures the objective function is bounded from below; the default value is 1. |
lambdaval |
The sequence of tuning parameters used |
error_mean |
The mean cross-validated number of misclassified observations - a vector of length |
error_se |
The standard error associated with each value of |
lambda_min |
The value of tuning parameter that has the minimal mean cross-validation error |
f |
The mean cross-validated number of non-zero features - a vector of length |
Irina Gaynanova
I.Gaynanova, J.Booth and M.Wells (2016). "Simultaneous sparse estimation of canonical vectors in the p>>N setting", JASA, 111(514), 696-706.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.