Search a grid of values of alpha and lambda for minimum mean CV error
| 1 2 3 4 5 6 7 8 9 10 11 | ensr(
  x,
  y,
  alphas = seq(0, 1, length = 10),
  nlambda = 100L,
  standardize = TRUE,
  nfolds = 10L,
  foldid,
  envir = parent.frame(),
  ...
)
 | 
| x | 
 | 
| y | response  | 
| alphas | a sequence of alpha values | 
| nlambda | The number of  | 
| standardize | Logical flag for x variable standardization, prior to
fitting the model sequence. The coefficients are always returned on the
original scale. Default is  | 
| nfolds | number of folds - default is 10. Although  | 
| foldid | an optional vector of values between 1 and  | 
| envir | environment in which to evaluate a cv.glmnet call | 
| ... | Other arguments that can be passed to  | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.