Description Usage Arguments See Also Examples
method description
1 2 |
x |
... |
start |
... |
end |
... |
... |
further arguments |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | x1 <- factor(c(1, 1, 0, 1))
x2 <- factor(c(0, 1, 0, 1))
dat <- data.frame(x1 = x1, x2 = x2)
prior <- function(net) 1
initial <- bn(c(), c())
sampler <- BNSampler(dat, initial, prior)
samples <- draw(sampler, n = 50)
mpost <- bnpostmcmc(sampler, samples)
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.