Description Usage Arguments Value Examples
View source: R/grid_lasso_logistic.R
Computes solutions for grid lasso-penalised logistic regression (wrapper for glmnet)
1 2 3 4 5 6 7 8 9 10 11 12 | grid_lasso_logistic(
x = NULL,
y,
var_order = NULL,
lambda = NULL,
nlambda = 100L,
grid.size = p,
grid.size.truncate = grid.size,
lambda.min.ratio = ifelse(n < p, 0.01, 1e-04),
thresh = 1e-10,
maxit = 1e+05
)
|
x |
Design matrix, n x p |
y |
Vector of responses, length n |
var_order |
For user-specified ordering of variables. Indices start at 0, start with least important variable and end with most. By default order will be induced from scaling of columns in design matrix |
lambda |
For user-specified sequence of tuning parameter lambda |
nlambda |
Length of automatically generated sequence of tuning parameters lambda |
grid.size |
Number of subsets of variables for which a solution path will be computed for |
grid.size.truncate |
Not for user modification and is only altered when called from cv_grid_lasso |
lambda.min.ratio |
Ratio of max/min lambda for automatically generated sequence of tuning parameters lambda |
thresh |
Convergence threshold for coordinate descent for difference in objective values between successive iterations |
maxit |
Maximum number of iterations for coordinate descent routine |
A list of glmnet model objects
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.