Description Usage Arguments Value Examples
View source: R/FunctionsALasso.R
Cross-Validation to choose the optimal gamma from a sequence of gamma values for a particular sequence of lambdas
1 2 3 4 5 6 7 8 9 10 11 |
X |
n x p design matrix of inputs |
Y |
n x 1 vector of outputs |
tuning_seq |
(optional)sequence of tuning parameters |
len_tuning |
length of desired tuning parameter sequence |
gamma_seq |
(optional)sequence of gamma values(used in determining weights) |
n_gamma |
length of the desired sequence of gamma values |
k |
number of folds for k-fold cross-validation, default is 5 |
id_fold |
(optional) vector of length n specifying the folds assignment (from 1 to max(folds_ids)), if supplied the value of k is ignored |
eps |
precision level for convergence assessment, default 0.001 |
cv |
a n_gamma x len_tuning matrix giving CV(lambda, gamma) for each pair of (lambda, gamma) |
gamma_min |
optimal gamma |
lambda_min |
selected lambda based on minimal rule |
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.