po.avg | R Documentation |
This function performs LASSO, Ridge, or Elastic Net regression for portfolio optimization.
po.avg(y0, x0, method = "LASSO")
y0 |
A numeric vector of response values. |
x0 |
A numeric matrix of predictors. |
method |
The regularization method: "LASSO", "RIDGE", or "EN" (Elastic Net). |
A numeric vector of optimized portfolio weights.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.