Description Usage Arguments Value Examples
This function uses a particular penalized regression "MCP", "SCAD", or "lasso" and cross validation to find the regression variables and cofficients, and generate prediction (on a testing design matrix), selected variable support, a solution path. The function relies on ncvreg package. Intercept is considered.
1 | regPenalized(dat, hd_method, dfmax = NULL, X_test = NULL)
|
dat |
List containing design Matrix X and observations Vector y |
hd_method |
Strong ("MCP", "SCAD", "lasso") indicating the method in use |
dfmax |
Integer of maximum number of variables to select, default to the number of variables |
X_test |
Matrix of design (for testing) |
pre_opt Vector of predicted observations of size 'number of test size' x 1
supp_opt Vector of indices of the selected variables
Beta Matrix of estimated coefficients along solution path, of size ('number of variables' + 1) x 'number of lambdas'
fit Object of from package 'ncvreg' that can be used to predict
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.