Learn R Programming

BDgraph (version 2.13)

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".
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 Wit, E. C. (2014). Bayesian structure learning in sparse Gaussian graphical models, Bayesian Analysis, acceped. http://arxiv.org/abs/1210.5371v6

See Also

bdgraph

Examples

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

Run the code above in your browser using DataLab