top.bnpostmcmc: Top graph from BN Posterior.

Description Usage Arguments Value See Also

View source: R/post-mcmc.R

Description

Returns the most commonly encountered graphs during the MCMC sampling 'x'. The top 'head' graphs with respect to MCMC sampling are returned. ie if the MCMC sampler has converged, the top graphs with respect to the posterior distribution on graphs will be returned.

Usage

1
2
  ## S3 method for class 'bnpostmcmc'
 top(x, head = 10, ...)

Arguments

x

An object of class 'bnpostmcmc'

head

The top head graphs will be returned. If the 'head'th most-commonly encountered graph ties in frequency with other graphs, all of the ties will be returned.

...

Further arguments (unused)

Value

if head == 1: EITHER an object of class 'bn' containing the most commonly encountered graph, OR an object of class 'bn.list' containing a list of the equally most- commonly encountered graphs (if two or more were equally most- commonly) encountered if head > 1: an object of class 'bn.list' containing a list of the equally most- commonly encountered graphs

See Also

top


rjbgoudie/structmcmc documentation built on Nov. 3, 2020, 3:41 a.m.