Description Usage Arguments Value Author(s) References Examples
View source: R/inner_wrappers.R
Est.ALASSO.GLMNET.TANGXIE
fits adaptive lasso based on cv.glmnet. The best lambda (penalizing factor) is chosen by 10-fold cross-validation.
1 2 | Est.ALASSO.GLMNET.TANGXIE(dat.list, K, BIC.factor = 0.1, fam0 = "binomial",
lambda.grid, mvpct = 0.5, modBIC = T, adaptive = T, onestep = F)
|
dat.list |
a list of matrices. Each element of the list is a sub-dataset. In each sub-dataset, for non-survival outcome, first column = response, rest = design matrix. In each sub-dataset, for continuous-time survival outcome, first column = time, second column = delta (0/1), rest = design matrix. |
K |
Number of sub-datasets in dat.list |
BIC.factor |
factor in modified BIC, BIC = -2 loglikelihood + df * N^BIC.factor |
fam0 |
family of the response, taking "binomial", "Poisson", "Cox" |
lambda.grid |
the grid of lambda to put into glmnet |
mvpct |
majority voting percentage used for Chen and Xie (2014) |
modBIC |
if the program also finds the lamda that minimizes the modified BIC. The default is TRUE. |
adaptive |
if adaptive lasso is used. The default is TRUE |
onestep |
if one-step estimator should be used as the initial estimator for Cox fit |
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 |
a list containing two arguments: bhat.cv adaptive lasso estimator using 10-fold cross-validation; lambda.cv is the optimal lambda chosen by cross-validation.
Yan Wang, Tianxi Cai
Chen, Xueying, and Min-ge Xie. "A split-and-conquer approach for analysis of extraordinarily large data." Statistica Sinica (2014): 1655-1684.
Tang, Lu, Ling Zhou, and Peter X-K. Song. "Method of Divide-and-Combine in Regularised Generalised Linear Models for Big Data." arXiv preprint arXiv:1611.06208 (2016).
1 | Est.ALASSO.GLMNET.TANGXIE(dat.list,K,BIC.factor=0.1,fam0="binomial",lambda.grid,mvpct = 0.5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.