Description Usage Arguments Value Author(s) Examples
View source: R/inner_wrappers.R
Est.ALASSO.GLMNET
fits adaptive lasso based on glmnet. The best lambda (penalizing factor) is chosen by BIC or modified BIC.
1 2 | Est.ALASSO.GLMNET(data, BIC.factor = 0.1, fam0 = "binomial", w.b = NULL,
lambda.grid, modBIC = T)
|
data |
matrix or data frame. For non-survival outcome, first column = response, rest = design matrix. For continuous-time survival outcome, first column = time, second column = delta (0/1), rest = design matrix. |
BIC.factor |
factor in modified BIC, BIC = -2 loglikelihood + df * N^BIC.factor |
fam0 |
family of the response, taking "binomial", "Poisson", "Cox" |
w.b |
w.b used to penalize adaptive lasso. If null, a glm/Cox model will be fitted and 1/abs(coefficients) will be used as w.b |
lambda.grid |
the grid of lambda to put into glmnet |
modBIC |
if the program also finds the lamda that minimizes the modified BIC. The default is TRUE. |
bhat.BIC adaptive lasso estimator using BIC and bhat.modBIC adaptive lasso estimator using modified BIC. lambda.BIC and lambda.modBIC return the optimal lambda chosen by BIC and modified BIC.
Yan Wang, Tianxi Cai
1 | Est.ALASSO.Approx.GLMNET(ynew,xnew,bini,N.adj)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.