huge.scr(x, ind.group = NULL, scr.num = NULL, method = "GSS", nlambda = 30,
lambda.min.ratio = 0.1, lambda = NULL, verbose = TRUE)
n
by d
data matrix representing n
observations in d
dimensionsk
dimensional vector indexing a subset of all d
variables. ONLY applicable when estimating a subgraph of the whole graph. The default value is c(1:d)
.n-1
when d>n
and d-1
(equivalent to disabling the GSS) when n>=d
. An alternative value is n/log(n)
"GSS"
and "GACT"
The default value is "GSS"
.lambda = NULL
and have the program compute its own lambda
sequence based on nlambda
and lamb
30
.ONLY application when method = "GACT"
.lambda
as a sequence of length = nlambda
, which makes the sparsity level of the solution path increases from 0
to lambda.m
verbose = FALSE
, printing the tracing information is disabled. The default value is TRUE
.lambda
. ONLY applicable when approx = TRUE
.approx = TRUE
.approx = TRUE
.scr.num
by k
matrix is returned. Each column corresponds to a variable in ind.group
and contains the indices of the remaining neighbors after the graph screening. ONLY applicable when approx = FALSE
.huge
and huge-package
# generate data
L = huge.generator(graph = "hub", g = 5)
ind.group = c(1:30)
# the Graph Sure Screening (GSS)
out.scr = huge.scr(L$data, ind.group = ind.group)
summary(out.scr)
# the Graph Approximation via Correlation Threholding (GACT)
out.approx = huge.scr(L$data, method = "GACT", nlambda = 20)
summary(out.approx)
plot(out.approx)
out.scr = huge.scr(L$data, ind.group = ind.group, method = "GACT")
huge.plot(out.scr$path[[15]])
Run the code above in your browser using DataLab