Builds a directed network in which the edge predictor -> outcome is the
predictor's LMG (Shapley) share of the outcome node's regression R-squared.
Equivalent in purpose to relaimpo::calc.relimp(type = "lmg") applied
nodewise / bootnet's "relimp" default, pure base R and self-certified via
lmg_certificate().
Arguments
- data
Numeric data frame or matrix (rows = observations). Optional if
cor_matrixis supplied.- cor_matrix
Optional correlation matrix.
- cor_method
Correlation when
datais supplied:"pearson"(default),"spearman","kendall", or"auto"(polychoric/polyserial; seecor_auto()).- max_nodes
Refuse to run above this many nodes (the cost grows as
2^(p-1)per node). Default 21.- normalized
If
TRUE, rescale each outcome's incoming importance shares to sum to 1, matchingbootnet/relaimpo's normalized reporting. The defaultFALSEkeeps raw LMG shares that sum to the outcome R-squared.- na_method
Missing-data handling when
datais supplied:"pairwise"(default) or"listwise". Seeebic_glasso().- labels
Optional node labels.
Value
A psychnet object whose $weights is the directed importance matrix
(weights[k, j] = importance of k for outcome j), with $r2 (per-node
full-model R-squared), $cor_matrix, and $kkt (the decomposition
residual). With normalized = FALSE (default) each outcome's incoming
shares sum to its R-squared (colSums($weights) == $r2); with
normalized = TRUE they are rescaled to sum to 1, $raw_importance holds
the unscaled shares, and $kkt (like lmg_certificate()) is computed from
those raw shares.