Description Usage Arguments See Also Examples
Compute the posterior edge probabilities, as given by the supplied object.
1 |
x |
An object |
... |
Further arguments, passed to method |
ep.bnpostmcmc.list
,
ep.parental.list
, ep.bnpost
,
ep.table
,
ep.parental.contingency
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | x1 <- factor(c(1, 1, 0, 1))
x2 <- factor(c(0, 1, 0, 1))
dat <- data.frame(x1 = x1, x2 = x2)
initial <- bn(c(), c())
prior <- priorUniform(initial)
sampler <- BNSampler(dat, initial, prior)
samples <- draw(sampler, n = 50)
mpost <- bnpostmcmc(sampler, samples)
ep(mpost)
initial <- bn(c(), c(1))
sampler2 <- BNSampler(dat, initial, prior)
samples2 <- draw(sampler2, n = 50)
mpost2 <- bnpostmcmc(sampler2, samples2)
ep(bnpostmcmc.list(mpost, mpost2))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.