Estimates a Gaussian graphical model after a rank-based nonparanormal
transform that relaxes the multivariate-normal assumption, then selects the
L1 penalty by EBIC and refits to the certified optimum. Equivalent in purpose
to huge::huge() (nonparanormal) / bootnet's "huge" default, but pure
base R and self-certified via glasso_kkt() on the transformed correlation.
Arguments
- data
Numeric data frame or matrix (rows = observations). Optional if
cor_matrixis supplied (then the transform is skipped).- cor_matrix
Optional pre-transformed correlation matrix; if given,
nis required,dataandnpnare ignored.- n
Sample size (required when
cor_matrixis supplied).- npn
Nonparanormal transform:
"shrinkage"(default),"truncation", or"skeptic"(Spearman).- gamma
EBIC hyperparameter. Default 0.5.
- nlambda
Number of penalties on the path. Default 100.
- lambda_min_ratio
Smallest penalty as a fraction of the largest.
- threshold
Partial correlations with absolute value below this are zeroed. Default 0. With a positive value
$kktisNAfor the returned graph and the pre-threshold residual is stored as$fit_kkt.- na_method
Missing-data handling when
datais supplied:"pairwise"(default, with the nonparanormal transform applied per column over observed values) or"listwise". Seeebic_glasso().- native
Solver switch for the glasso path:
TRUE(default) uses the pure-R solver;FALSEdelegates to theglassoFortran package (inSuggests). Seeebic_glasso().- labels
Optional node labels.
Value
A psychnet object whose $weights is the partial-correlation matrix,
with $precision, $lambda, $gamma, $cor_matrix (the transformed
correlation), $npn, $ebic, and $kkt.
References
Liu, H., Lafferty, J., & Wasserman, L. (2009). The nonparanormal: Semiparametric estimation of high dimensional undirected graphs. Journal of Machine Learning Research, 10, 2295-2328.
Foygel, R., & Drton, M. (2010). Extended Bayesian information criteria for Gaussian graphical models. Advances in Neural Information Processing Systems, 23, 604-612.