Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


liso (version 0.2)

liso.maxlamb: Liso maximum lambda

Description

Calculates maximum value of lambda for which Liso gives a non-zero fit

Usage

liso.maxlamb(x=NULL,y=NULL,monotone=TRUE, covweights=rep(1, ncol(x)), weights=rep(1, length(y)))

Arguments

x
Design matrix (without intercept).
y
Response value.
monotone
Monotonicity pattern. Can be a single value, or a vector of length equal to the number of covariates. Takes values -1, 0, 1, indicating monotonically decreasing, non-monotonic, monotonically increasing respectively.
covweights
Covariate weights. Should be a vector of length equal to the number of covariates, or more if different weights are to be applied to positive and negative fits of non-monotone components.
weights
Observation weights. Should be a vector of length equal to the number of observations.

References

Zhou Fang and Nicolai Meinshausen (2009), Liso for High Dimensional Additive Isotonic Regression, available at http://blah.com

See Also

plotCV

Examples

Run this code
## 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