https://github.com/cran/BDgraph
Raw File
Tip revision: 5bd0371554518393550a2f309936a5918cad7590 authored by Abdolreza Mohammadi on 04 February 2013, 00:00:00 UTC
version 2.7
Tip revision: 5bd0371
print.bdgraph.Rd
\name{print.bdgraph}
\alias{print.bdgraph}

\title{Print function for "bdgraph" output}

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

\usage{\method{print}{bdgraph}(x, round = 3, Khat = FALSE, phat = FALSE, ...)}

\arguments{
  \item{x}{
an object with S3 class "bdgraph". A list which is the result of the BD-MCMC algorithm from the 'bdgraph' function. 
}
  \item{round}{a number for rounding all probabilities to the specified number of decimal places (default 3).}
  
  \item{Khat}{logical: if TRUE you will see the estimation of precision matrix. The default is FALSE.}
  
  \item{phat}{logical: if TRUE you will see the posterior edge inclusion probabilities. The default is FALSE.}
 
  \item{\dots}{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. \url{http://arxiv.org/abs/1210.5371v4}
}
\author{Abdolreza Mohammadi and Ernst Wit}

\seealso{\code{\link{bdgraph}}}

\examples{
\dontrun{
  # 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)
  }
}
back to top