Learn R Programming

BDgraph (version 2.7)

print.bdgraph: Print function for "bdgraph" output

Description

According to output of the BD-MCMC algorithm, this function gives us the print of the result.

Usage

## S3 method for class 'bdgraph':
print(x, round = 3, Khat = FALSE, phat = FALSE, ...)

Arguments

x
an object with S3 class "bdgraph". A list which is the result of the BD-MCMC algorithm from the 'bdgraph' function.
round
a number for rounding all probabilities to the specified number of decimal places (default 3).
Khat
logical: if TRUE you will see the estimation of precision matrix. The default is FALSE.
phat
logical: if TRUE you will see the posterior edge inclusion probabilities. The default is FALSE.
...
system reserved (no specific usage).

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

Examples

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

Run the code above in your browser using DataLab