
Last chance! 50% off unlimited learning
Sale ends in
liso.maxlamb(x=NULL,y=NULL,monotone=TRUE, covweights=rep(1, ncol(x)), weights=rep(1, length(y)))
plotCV
## Use the method on a simulated data set
set.seed(79)
n <- 100; p <- 50
## Simulate design matrix and response
x <- matrix(runif(n * p, min = -2.5, max = 2.5), nrow = n, ncol = p)
y <- scale(3 * (x[,1]> 0), scale=FALSE) + x[,2]^3 + rnorm(n)
liso.maxlamb(x,y)
liso.maxlamb(x,y,monotone = -1)
Run the code above in your browser using DataLab