Description Usage Arguments Value Examples
call run_lasso over a specified number of trials to see the frequency with which the regularization proceedure include each coefficient
1 | repeat_lasso(trials, my_x, my_y, my_alpha = 1, my_family = "gaussian")
|
trials |
number of times to repeat cross-validation on the lasso |
my_x |
matrix of numeric predictors |
my_y |
matrix (1D) response |
my_alpha |
numeric from 0 (ridge) to 1 () |
my_family |
string "gaussian", 'binomial" |
list, first element is data frame summarizing fits, second element contains all of the glmnet cvfit objects
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.