powObj | R Documentation |
Letting Q =X'X and l = X'y, gives the value:
-((β'Qβ - 2β'l)/(2σ^2) + λ ∑_{j = 1}^p |β_j|^q)
for fixed z, λ > 0 and q > 0.
powObj(beta, Q, l, sigmasq = 1, lambda = 1, q = 1)
|
length p vector of coefficient values to compute objective function for |
|
p\timesp matrix corresponding to X'X |
|
length p vector corresponding to X'y |
|
scalar noise variance |
|
scalar multiplier applied to penalty |
|
scalar power of penalty function |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.