objFunction {smoothedLasso} | R Documentation |
Auxiliary function to define the objective function of an L1 penalized regression operator.
Description
Auxiliary function to define the objective function of an L1 penalized regression operator.
Usage
objFunction(betavector, u, v, w)
Arguments
betavector |
The vector of regression coefficients. |
u |
The function encoding the objective of the regression operator. |
v |
The function encoding the penalty of the regression operator. |
w |
The function encoding the dependence structure among the regression coefficients. |
Value
The value of the L1 penalized regression operator for the input betavector
.
References
Hahn, G., Lutz, S., Laha, N., and Lange, C. (2020). A framework to efficiently smooth L1 penalties for linear regression. bioRxiv:2020.09.17.301788.
Examples
library(smoothedLasso)
n <- 100
p <- 500
betavector <- runif(p)
X <- matrix(runif(n*p),nrow=n,ncol=p)
y <- X %*% betavector
lambda <- 1
temp <- standardLasso(X,y,lambda)
print(objFunction(betavector,temp$u,temp$v,temp$w))
[Package smoothedLasso version 1.6 Index]