Do stability selection for glmaag
ss_glmaag(y, x, L, nfolds = 5, subn, nsam = 100, beta = 0.15,
gam = 1, tune = F, est = T, lam1, lam2, w0, adaptl1 = T,
adaptl2 = T, pind, intercept = T, standardize = T,
maxiter = 10000, cri = 0.001, fam = "Gaussian", measdev = T,
type1se = T, parallel = F)
outcome
predictors matrix
Laplacian matrix for the first network
number of folds used in cross validation to estimate the l1 weights or network tuning, default to be five
number of samples in each subset, default to be n/2 if n<400 and 10sqrt(10) if n>400
number of subsets, default to be 100
the cut off for instability score
The power of weights of l1 penalty, default to be ones
whether to tune the input network with estimated network or identity matrix, ignored if no input network
when there is no input network whether to use estimated network or identiy matrix (elastic net) or mixed the network with estimated network or identity matrix, default to be estimated network
The tuning parameters for l1 penalty. If not defined, searched by default
The tuning parameters for quadratic penalty. If not defined, searched by default
Weights for l1 penalty. If not defined, estimated via quadratic penalyzed regression
whether to adapt the l1 penalty, default to be TRUE
whether to adapt the sign for quadratic penalty, default to be TRUE
indicator vector whether to put l1 penalty on the feature, 1 means penalyzed while 0 means not penalyzed, default to be all ones (all penalyzed)
whether to include intercept. Ignore for Cox regression
whether to standardize predictors
maximum number of iterations, default to be 500
stoppint criterion, default to be 0.001
family for the outcome, can be "Gaussian", "Logistic", and "Cox"
Whether to use deviance to tune when estimate l1 weight and network sign, default to be deviance. If not, use mean absolue error, area under ROC curve, or concordance index for Gaussian, Logistic, and Cox
whether to use one standard error or maximum rule for l1 weight estimation and network sign, default to be one standard error rule
whether to do parallel computing at each subset, need to set up parallel first, default to be FALSE
input matrix for predictors
searching sequence for l1 penalty parameters
searching sequence for quadratic penalty parameters
optimal l1 parameter
optimal quadratic parameter
number of parameters obtained by the optimal model
instability score paths
selection probability paths
intercept estimated by the optimal model
coefficients estimated by the optimal model
the family of the outcome
Meinshausen, N., & B"uhlmann, P. (2010). Stability selection. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 72(4), 417-473.
Liu, H., Roeder, K., & Wasserman, L. (2010). Stability approach to regularization selection (stars) for high dimensional graphical models. In Advances in neural information processing systems (pp. 1432-1440).
# NOT RUN {
data(sampledata)
data(L0)
y <- sampledata$Y_Gau
x <- sampledata[, 4:6]
mod <- ss_glmaag(y, x, L0[seq_len(3), seq_len(3)], nsam = 3)
# }
Run the code above in your browser using DataLab