bic | R Documentation |
Do BIC on lasso output. Needs degrees of freedom coming from glmnet. Bound on lambda is optional, imposed as 0.5T by default.
bic(y, x, b, df, bound = 0.5 * length(y))
y |
vector of dependent variable |
x |
vector or matrix of regressors |
b |
lasso coefficients (taken from glmnet) |
df |
lasso degrees of freedom (taken from glmnet) |
bound |
upper bound on tuning parameter lambda: i.e. impose lasso to stop the selection after it selects 0.5T parameters. |
the estimated parameters with BIC
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.