extended.randomlasso | R Documentation |
This function takes a matrix of candidate predictors X and a vector of response variables Y and performs random lasso regression.
extended.randomlasso( X, Y, lambda = NULL, B = 200, q1 = length(Y), q2 = length(Y), ytype = "continuous" )
X |
an n by p matrix of candidate predictors. |
Y |
an n by 1 vector of responses |
lambda |
an optional lambda value. If no lambda is provided, an optimal lambda is automatically determined using glmnet::cv.glmnet(alpha=1). |
B |
the number of Bootstrap samples. Default is 200. |
q1 |
the number of random predictors to use in step 1 of the algorithm. Default is length(Y). Must be less than or equal to this value. |
q2 |
the number of random predictors to use in step 2 of the algorithm. Default is length(Y). Must be less than or equal to this value. |
ytype |
description as to whether or not the response variable y is binary or continuous. Defaults to 'continuous'. |
extended.randomlasso(X,Y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.