Description Usage Arguments Details Value
This function returns TRUE
if and only if the lasso solution
satisfy the KKT condition.
1 | checkKKT(y, X, lambda, beta.hat, tol = 1e-05)
|
y, |
the response vector. |
X, |
the design matrix. |
lambda, |
the tuning parameter. |
beta.hat, |
the lasso solution. |
tol, |
the tolerance. |
This function assumes the quadratic loss is scaled by 1/2n. That is,
1/(2n) * ||y-Xβ||_2^2 + λ * ||β||_1
This function returns the desired logical result.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.