Marginal (zero-order) association network: the Pearson correlation matrix
with the diagonal removed. Equivalent to bootnet's "cor" default.
Arguments
- data
Numeric data frame or matrix (rows = observations). Optional if
cor_matrixis supplied.- cor_matrix
Optional precomputed correlation matrix; if given,
datais ignored andnis required whenalphais used.- n
Sample size (needed for significance testing when
cor_matrixis supplied).- cor_method
Correlation method:
"pearson"(default),"spearman","kendall", or"auto"(polychoric/polyserial for ordinal items, theqgraph::cor_autodefault; seecor_auto()).- threshold
Correlations with absolute value below this are set to zero. Default 0.
- alpha
Significance level; if set, correlations not significant at
alphaare zeroed.NULL(default) keeps every edge.- adjust
Multiple-comparison adjustment for the edge p-values (any stats::p.adjust method). Default
"none".- na_method
Missing-data handling:
"pairwise"(default) uses pairwise-complete correlations projected to the nearest positive-definite matrix;"listwise"drops rows with anyNA. Identical when data is complete.- labels
Optional node labels.