Learn R Programming

BDgraph (version 2.13)

phat: Posterior edge inclusion probabilities

Description

According to the output of BD-MCMC algorithm, this function gives us the posterior edge inclusion probabilities for all possible edges.

Usage

phat( output, round = 3 )

Arguments

output
An object with S3 class "bdgraph".
round
A number for rounding all probabilities to the specified number of decimal places (default 3).

Value

  • phatUpper triangular matrix which shows the posterior inclusion probabilities for all possible edges.

References

Mohammadi, A. and Wit, E. C. (2014). Bayesian structure learning in sparse Gaussian graphical models, Bayesian Analysis, acceped. http://arxiv.org/abs/1210.5371v6

See Also

bdgraph and bdgraph.sim

Examples

Run this code
# generating synthetic multivariate normal data from a 'random' graph
  data.sim <- bdgraph.sim( n = 50, p = 6, graph = "circle", vis = TRUE )
  
  output   <- bdgraph( data = data.sim )
  
  phat( output, round = 2 )

Run the code above in your browser using DataLab