View source: R/dCVnet_utilities.R
lambda_rangefinder | R Documentation |
What range of lambda penalty amounts should we consider for a dataset? The maximum for a given dataset is determined by a simple formula, but this can vary from subset to subset. This code bootstraps the calculation of max-lambda for subsets of the input data.
lambda_rangefinder(y, x, alphalist, prop, niter = 10000)
y |
binary outcome (from |
x |
predictor matrix (from |
alphalist |
alphas to consider, e.g. |
prop |
proportion of the input to bootstrap. This should be the fraction of observations remaining in the inner loop CV. for example: if outer and inner loops are both 5-fold, prop should be 0.8 * 0.8 = 0.64 |
niter |
the number of times to bootstrap. |
maxlambda
- the largest bootstrapped lambda value
for each alpha requested.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.