View source: R/edge.selection.R
edge.selection | R Documentation |
Extension of gss package for edge selection
edge.selection(data, method, ...)
data |
Data frame containing all variables. |
method |
Method type to select edges. |
... |
Any options can be defined.
|
type, alpha, subset, na.action, seed, prec, maxiter, id.basis, nbasis
are
arguments shared by the joint and neighborhood selection method. They also work the same as in gss
package.
domain, quad
are two arguments for the joint method and work the same as ssden1
in gss
package.
w
is an option argument in the joint method.
rho, ydomain, yquad, skip.iter
are arguments for the neighborhood selection method. They work the same as sscden1
in gss
package.
W2, neighborhoodMethod
are two optional arguments in the neighborhood selection method.
The rest of argument options are specifically for the semi-parametric method.
# Use joint method for edge selection. library(gss) data(NO2) edge.selection(data = NO2, method = "joint", nbasis = 100) # Use neighborhood selection method for edge selection. # Parallel backend library(doMC) library(foreach) library(huge) registerDoMC(20) n <- 200; p <- 20 # Simulate high dimension data set.seed(5732) z <- huge.generator(n, d = p, graph = "random", prob = .2, verbose = FALSE, vis = FALSE, v = .65) data <- data.frame(z$data) edge.selection(data = data, method = "neighborhood") # Use semi-parametric method for edge selection. # Assume we estimate the first five variables using non-parametric method. px <- 5 edge.selection(data = data, method ="semi", px = px)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.