Description Details Author(s) References
The package enables inference of marginal and conditional dependencies from high-dimensional using the method of Leday and Richardson (2019). Inference is carried out by multiple testing of hypotheses about pairwise (marginal or conditional) independence using closed-form Bayes factors. Exact tail probabilities are obtained from the null distributions of the Bayes factors to help address the multiplicity problem and control desired error rates for incorrect edge inclusion. The method is computationally very efficient and allows to address problems with hundreds or thousands of variables.
1. The main function of the package is beam
which carries out shrinkage estimation of the (inverse) covariance and compute the (scaled) Bayes factors as well as the tail probabilities (p-values). The function returns an (S4) object of class beam-class
that is associated with the following methods:
- summary,beam-method
:
provides a summary of inferred (marginal and/or conditional) associations.
- marg,beam-method
:
returns a data.frame with marginal correlations, Bayes factors and/or tail probabilities.
- cond,beam-method
:
returns a data.frame with partial correlations, Bayes factors and/or tail probabilities.
- mcor,beam-method
:
return marginal correlation matrix (scaled posterior expectation of the covariance matrix).
- pcor,beam-method
:
return partial correlation matrix (scaled posterior expectation of the inverse covariance matrix).
- plotML,beam-method
:
plot log-marginal likelihood of the Gaussian conjugate model as a function of shrinkage parameter.
- plotCor,beam-method
:
plot heatmap of marginal (upper triangle) and/or partial (lower triangle) correlation estimates.
2. The function beam.select
takes as input an object of class beam-class
and carries out edge selection by multiple testing of hypotheses about pairwise (marginal or conditional) independence. The function helps address the multiplicity problem and control different types of error rates (e.g. false discovery rate, family-wise error rate, ...). beam.select
returns an (S4) object of class beam.select-class
that is associated with the following methods:
- summary,beam.select-method
:
provides a summary of inferred (marginal or conditional) associations.
- marg,beam.select-method
:
returns a data.frame with marginal correlations, Bayes factors and/or tail probabilities for selected edges.
- cond,beam.select-method
:
returns a data.frame with partial correlations, Bayes factors and/or tail probabilities for selected edges.
- bgraph,beam.select-method
:
return an igraph
object containing the marginal (in)dependence graph.
- ugraph,beam.select-method
:
return an igraph
object containing the conditional (in)dependence graph.
Authors: Gwenael G.R. Leday and Ilaria Speranza
Maintainer: Gwenael G.R. Leday <gwenael.leday@mrc-bsu.cam.ac.uk>
Leday, G.G.R. and Richardson, S. (2019). Fast Bayesian inference in large Gaussian graphical models. Biometrics. 75(4), 1288–1298.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.