huge.MBGEL(x, lambda = NULL, nlambda = NULL, lambda.min.ratio = NULL, scr = NULL,
scr.num = NULL, idx.mat = NULL, sym = "or", verbose = TRUE)
n
by d
data matrix. (2) A d
by d
sample covariance covariance matrix. The program automatically identifies the input matrix by checking the symmetry.(n
is the samscr.num
by d
matrix. Each column contains the indices of the preslected neighborhood. Typical usage is to leave the input idx.mat = NULL
and have the program compute its own idx.mat
matrix based on lambda = NULL
and have the program compute its own lambda
sequence based on nlambda
and lambda.min.ratio
10
.lambda
, as a fraction of the uppperbound (MAX
) of the regularization parameter which makes all estimates equal to 0
. The program can automatically generate lambda
as a sequence of scr = TRUE
, GSS is applied to preselect the neighborhood for MBGEL. The default value is TRUE
for n and FALSE
for n>=d
.
scr = TRUE
. The default value is n-1
. An alternative value is n/log(n)
.sym = "and"
, the edge between node i
and node j
is selected ONLY when both node i
and node j
are selected as neighbors for each other. If sym = "or"
verbose = FALSE
, tracing information printing is disabled. The default value is TRUE
."MBGEL"
is returned:k
by k
adjacency matrices (in sparse matrix representation) of estimated graphs as the solution path corresponding to lambda
.k
by nlambda
matrix. Each row is corresponding to a variable in ind.group
and contains all RSS's (Residual Sum of Squares) along the lasso solution path.k
by nlambda
matrix. Each row corresponds to a variable in ind.group
and contains the number of nonzero coefficients along the lasso solution path.huge
and huge-package
#generate data
L = huge.generator(n = 100, d = 200, graph = "hub")
#graph path estimation with GSS
out = huge.MBGEL(L$data)
plot(out)
#graph path estimation with specified lambda.min.ratio and nlambda
out = huge.MBGEL(L$data, nlambda = 8, lambda.min.ratio = 0.05)
plot(out)
#graph path estimation without GSS
sub.path = huge.MBGEL(L$data, scr = FALSE)
plot(sub.path)
Run the code above in your browser using DataLab