Description Usage Arguments Value Examples
View source: R/ggm_inference.R
Learn the conditional dependence structure with null hypothesis significance testing. This provides a valid measure of parameter uncertainty.
1 2 3 4 5 6 7 8 9 10 | ggm_inference(
Y,
alpha = 0.05,
control_precision = FALSE,
boot = TRUE,
B = 1000,
cores = 1,
method = "pearson",
progress = TRUE
)
|
Y |
The data matrix of dimensions n (observations) by p (nodes). |
alpha |
The desired significance level (defaults to |
control_precision |
Logical. Should precision (i.e., 1 - false discovery rate)
be controlled at the level alpha (defaults to |
boot |
Logical. Should a non-parametric bootstrap be employed (defaults to |
B |
Integer. Number of bootstrap replicates (defaults to |
cores |
Integer. Number of cores to be used when executing in parallel (defaults to 1). |
method |
Character string. Which type of correlation coefficients
to be computed. Options include |
progress |
Logical. Should a progress bar be included (defaults to |
An object of class ggm_inference
including:
wadj: Weighted adjacency matrix, corresponding to the partial correlation network.
adj: Adjacency matrix (detected effects).
pcors: Partial correlations.
n: Sample size.
p: Number of nodes.
Y: Data.
1 2 3 | Y <- ptsd
fit <- ggm_inference(Y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.