View source: R/network.nonconvex.R
network.nonconvex | R Documentation |
The graphical least absolute shrinkage and selection operator with a non-convex regularization penalties
network.nonconvex(
data,
n = NULL,
corr = c("auto", "cor_auto", "cosine", "pearson", "spearman"),
na.data = c("pairwise", "listwise"),
penalty = c("iPOT", "LGP", "POP", "SPOT"),
gamma = NULL,
lambda = NULL,
nlambda = 50,
lambda.min.ratio = 0.01,
penalize.diagonal = TRUE,
optimize.over = c("none", "lambda", "both"),
ic = c("AIC", "AICc", "BIC", "EBIC"),
ebic.gamma = 0.5,
fast = TRUE,
verbose = FALSE,
...
)
data |
Matrix or data frame. Should consist only of variables to be used in the analysis |
n |
Numeric (length = 1).
Sample size must be provided if |
corr |
Character (length = 1).
Method to compute correlations.
Defaults to
For other similarity measures, compute them first and input them
into |
na.data |
Character (length = 1).
How should missing data be handled?
Defaults to
|
penalty |
Character (length = 1). Available options:
|
gamma |
Numeric (length = 1). Adjusts the shape of the penalty. Defaults:
|
lambda |
Numeric (length = 1). Adjusts the initial penalty provided to the non-convex penalty function |
nlambda |
Numeric (length = 1).
Number of lambda values to test.
Defaults to |
lambda.min.ratio |
Numeric (length = 1).
Ratio of lowest lambda value compared to maximal lambda.
Defaults to |
penalize.diagonal |
Boolean (length = 1).
Should the diagonal be penalized?
Defaults to |
optimize.over |
Character (length = 1).
Whether optimization of lambda, gamma, both, or no hyperparamters should be performed.
Defaults to |
ic |
Character (length = 1). What information criterion should be used for model selection? Available options include:
Term definitions:
Defaults to |
ebic.gamma |
Numeric (length = 1)
Value to set gamma parameter in EBIC (see above).
Defaults to Only used if |
fast |
Boolean (length = 1).
Whether the The fast results may differ by less than floating point of the original
GLASSO implemented by |
verbose |
Boolean (length = 1).
Whether messages and (insignificant) warnings should be output.
Defaults to |
... |
Additional arguments to be passed on to |
A network matrix
Alexander P. Christensen <alexpaulchristensen at gmail.com> and Hudson Golino <hfg9s at virginia.edu>
# Obtain data
wmt <- wmt2[,7:24]
# Obtain network
awe_network <- network.nonconvex(data = wmt)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.