Determines the value of the penalty parameter lambda when the first penalized parameter group enters the model.
lambdamax(x, ...)# S3 method for formula
lambdamax(formula, nonpen = ~1, data, weights, subset,
na.action, coef.init, penscale = sqrt, model = LogReg(),
center = TRUE, standardize = TRUE, contrasts = NULL,
nlminb.opt = list(), ...)
# S3 method for default
lambdamax(x, y, index, weights = rep(1, length(y)),
offset = rep(0, length(y)), coef.init = rep(0, ncol(x)),
penscale = sqrt, model = LogReg(), center = TRUE,
standardize = TRUE, nlminb.opt = list(), ...)
design matrix (including intercept)
response vector
formula
of the penalized variables. The response
has to be on the left hand side of '~'.
formula
of the nonpenalized variables. This will
be added to the formula
argument above and doesn't need to have the
response on the left hand side.
data.frame
containing the variables in the model.
vector which defines the grouping of the
variables. Components sharing the same
number build a group. Non-penalized coefficients are marked with
NA
.
vector of observation weights.
an optional vector specifying a subset of observations to be used in the fitting process.
a function which indicates what should happen when the data contain 'NA's.
vector of offset values.
initial parameter vector. Penalized groups are discarded.
rescaling function to adjust the value of the penalty parameter to the degrees of freedom of the parameter group. See the reference below.
an object of class grpl.model
implementing
the negative log-likelihood, gradient, hessian etc. See
grpl.model
for more details.
logical. If true, the columns of the design matrix will be centered (except a possible intercept column).
logical. If true, the design matrix will be blockwise orthonormalized, such that for each block \(X^TX = n 1\) (*after* possible centering).
an (optional) list with the contrasts for the factors in the model.
arguments to be supplied to nlminb
.
additional arguments to be passed to the functions defined
in model
.
An object of type numeric is returned.
Uses nlminb
to optimize the non-penalized parameters.
Lukas Meier, Sara van de Geer and Peter B\"uhlmann (2008), The Group Lasso for Logistic Regression, Journal of the Royal Statistical Society, 70 (1), 53 - 71
# NOT RUN {
data(splice)
lambdamax(y ~ ., data = splice, model = LogReg(), center = TRUE,
standardize = TRUE)
# }
Run the code above in your browser using DataLab