Usage
RAMP(X, y, family = "gaussian", penalty = "LASSO", gamma, inter = TRUE,
eps = 1e-15, tune = "EBIC", lam.list, lambda.min.ratio, max.iter = 100,
max.num, n.lambda = 100, ebic.gamma = 1, refit = TRUE, trace = FALSE)
Arguments
X
input matrix, of dimension nobs x nvars; each row is an observation vector.
y
response variable, of dimension nobs x 1. non-negative counts for
family="poisson"
, binary for family="binomial"
.
family
response type. Default is "gaussian".
penalty
Currently, only LASSO
is implemented.
gamma
concavity parameter. Experimental feature.
inter
whether to select interaction effects. Default is TRUE.
eps
the precision used to test the convergence. Default is 1e-15.
tune
tuning parameter selection method. "AIC", "BIC" and "EBIC" are available options. Default is EBIC.
lam.list
a user supplied $\lambda$ sequence. typical usage is to have the program compute its own lambda
sequence based on lambda.min.ratio
and n.lambda
. supplying a value of $\lambda$ overrides this.
lambda.min.ratio
optional input. smallest value for lambda
, as a fraction of max.lam
, the (data derived) entry value. the default depends on the sample size n
relative to the number of variables p
. if n
>
max.iter
maximum number of iteration in the computation. Default is 100.
max.num
optional input. maximum number of nonzero coefficients.
n.lambda
the number of lambda
values. Default is 100.
ebic.gamma
the gamma parameter value in the EBIC criteria. Default is 1.
refit
whether to perform a MLE refit on the selected model. Default is TRUE.
trace
whether to trace the fitting process. Default is FALSE.