Description Usage Arguments Value
View source: R/optim_functions.R
Compute objective function
1 2 3 4 5 6 7 | compute_objective_function(
Y,
X,
lambda,
sigma = NULL,
type = c("lasso", "scaled lasso")
)
|
Y |
A vector of size m. |
X |
A vector of size m*(n+m). |
lambda |
a grid of positive regularization parameters |
sigma |
Needed if |
type |
Character. If you want the |
a function that take Delta (a vector of size n+m) as argument and returns a scalar
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.