Learn R Programming

BDgraph (version 2.7)

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
a list which is the result of BD-MCMC algorithm from the 'bdgraph' function.
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 E. C. Wit (2012). Gaussian graphical model determination based on birth-death MCMC inference, arXiv:1210.5371v4. http://arxiv.org/abs/1210.5371v4

See Also

bdgraph and bdgraph.sim

Examples

Run this code
# generating the data from a random graph
  data.sim <- bdgraph.sim(n = 100, p = 8, graph = "circle", vis = TRUE)
  
  output   <- bdgraph(data.sim, mean = 0, iter = 2000)
  
  phat(output, round = 2)

Run the code above in your browser using DataLab