levelplot.ep.list: Levelplot of posterior edge probabilities.

Description Usage Arguments Examples

View source: R/post.R

Description

Plot a levelplot displaying the edge probabilities.

Usage

1
2
  ## S3 method for class 'ep.list'
 levelplot(eplist)

Arguments

eplist

An ep.list object. A list of edge probability matrices

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
x1 <- factor(c(1, 1, 0, 1))
x2 <- factor(c(0, 1, 0, 1))
x <- data.frame(x1 = x1, x2 = x2)

exact <- posterior(data = x, "exact")
mcmc <- posterior(data = x, "mc3", nSamples = 500, nBurnin = 100)

myep1 <- ep(exact)
myep2 <- ep(mcmc)
if (require(lattice)){
  levelplot(ep.list(Exact = myep1, MCMC = myep2))
}

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