Usage
plus(x,y, method = c("lasso", "mc+", "scad", "general"), m=2, gamma,v,t, monitor=FALSE, normalize = TRUE, intercept = TRUE, Gram, use.Gram = FALSE, eps=1e-15, max.steps=500, lam)
Arguments
x
predictors, an n by p matrix with n > 1 and p > 1.
y
response, an n-vector with n > 1.
method
c("lasso", "mc+", "scad", "general"); the LASSO penalty is specified by m = 1, MC+ is
specified by m = 2 and gamma > 0, SCAD by m = 3 and gamma > 1. A general
quadratic penalty is specified by m-vectors v and t.
m
number of knots with a quadratic spline penalty: m = 1 for Lasso, m = 2 for MC+, m = 3 for SCAD. Default is m = 2.
gamma
the largest knot of a quadratic spline penalty, say rho(.); gamma = 0 for lasso.
v
m-vector giving the negative second derivative rho(.) of the penalty between
two knots or beyond gamma.
t
m-vector giving the discontinuities of the derivatives of the penalty function rho(.) as
knots, including 0 as a knot.
monitor
If TRUE, plus prints out its progress when variables move in and out of the active set.
Default is FALSE.
normalize
If TRUE, each variable is standardized to have unit mean squares,
otherwise it is left alone. Default is TRUE.
intercept
If TRUE, an intercept is included in the model (and not penalized),
otherwise no intercept is included. Default is TRUE.
Gram
The X'X matrix; useful for repeated runs (e.g. bootstrap) where a large X'X stays the same.
use.Gram
When p is very large, you may not want PLUS to precompute the entire Gram matrix.
Default is FALSE.
max.steps
Limit the number of steps taken. Default is 500. There can be many more steps than
n or p since variables can be removed and added as the algorithm proceeds. Users
should check if the desired penalty level is reached if PLUS ends in the maximum step.
lam
A decreasing sequence of nonnegative numbers as penalty levels for which penalized
estimates of coefficients are generated. Default is the vector of ordered penalty levels
at the turning points of the computed path. If lam is set, the computation stops when the
path first hits the minimum of lam. The scale of lam is determined by the penalized loss
sum((y - x