glmsmurf.control {smurf} | R Documentation |
Control Function for Fitting a Multi-Type Regularized GLM Using the SMuRF Algorithm.
Description
Control function to handle parameters for fitting a multi-type regularized generalized linear model (GLM) using the SMuRF algorithm. The function sets defaults and performs input checks on the provided parameters.
Usage
glmsmurf.control(
epsilon = 1e-08,
maxiter = 10000,
step = NULL,
tau = 0.5,
reest = TRUE,
lambda.vector = NULL,
lambda.min = NULL,
lambda.max = NULL,
lambda.length = 50L,
lambda.reest = FALSE,
k = 5L,
oos.prop = 0.2,
validation.index = NULL,
ncores = NULL,
po.ncores = NULL,
print = FALSE
)
Arguments
epsilon |
Numeric tolerance value for stopping criterion. A numeric strictly larger than 0, default is |
maxiter |
Maximum number of iterations of the SMuRF algorithm. A numeric larger than or equal to 1, default is |
step |
Initial step size, a numeric strictly larger than 0 or |
tau |
Parameter for backtracking the step size. A numeric strictly between 0 and 1, default is 0.5. |
reest |
A logical indicating if the obtained (reduced) model is re-estimated using |
lambda.vector |
Values of lambda to consider when selecting the optimal value of lambda. A vector of strictly positive numerics (which is preferably a decreasing sequence as we make use of warm starts) or |
lambda.min |
Minimum value of lambda to consider when selecting the optimal value of lambda. A strictly positive numeric or |
lambda.max |
Maximum value of lambda to consider when selecting the optimal value of lambda. A strictly positive numeric larger than |
lambda.length |
Number of lambda values to consider when selecting the optimal value of lambda. A strictly positive integer, default is 50. This argument is ignored when |
lambda.reest |
Logical indicating if the re-estimated coefficients are used when selecting lambda, default is |
k |
Number of folds when selecting lambda using cross-validation. A strictly positive integer, default is 5 (i.e. five-fold cross-validation). This number cannot be larger than the number of observations. Note that cross-validation with one fold ( |
oos.prop |
Proportion of the data that is used as the validation sample when selecting |
validation.index |
Vector containing the row indices of the data matrix corresponding to the observations that are used as the validation sample.
This argument is only used when |
ncores |
Number of cores used when performing cross-validation. A strictly positive integer or |
po.ncores |
Number of cores used when computing the proximal operators. A strictly positive integer or |
print |
A logical indicating if intermediate results need to be printed, default is |
Details
More details on the selection of lambda can be found in the package vignette.
Value
A list with elements named as the arguments.
See Also
Fitting procedures: glmsmurf
and glmsmurf.fit
(given design matrix). glm.control
Examples
## See example(plot_lambda) for examples