mcmc-out-asia.Rd 1.07 KB
Newer Older
Gilles Kratzer's avatar
Gilles Kratzer committed
1
2
3
4
\name{mcmc.out.asia}
\docType{data}
\alias{mcmc.out.asia}

5
\title{MCMC searches from the synthetic asia dataset for use with mcmcabn library examples}
Gilles Kratzer's avatar
Gilles Kratzer committed
6
7
8
\description{This dataframe contains a cache of pre-computed scores with a maximum of two parents per node for the asia dataset.
}

9
     \usage{mcmc.out.asia}
Gilles Kratzer's avatar
Gilles Kratzer committed
10
11

\format{
Gilles Kratzer's avatar
typos    
Gilles Kratzer committed
12
     The data contains an object of class \code{mcmcabn}.
Gilles Kratzer's avatar
Gilles Kratzer committed
13
     \itemize{
Gilles Kratzer's avatar
typos    
Gilles Kratzer committed
14
     \item \code{mcmc.out.asia}: an object of class \code{mcmcabn}.
Gilles Kratzer's avatar
Gilles Kratzer committed
15
16
17
     }}

\examples{
18
\donttest{
Gilles Kratzer's avatar
Gilles Kratzer committed
19
20
## This data set was generated using the following code:
library(bnlearn) #for the dataset
Gilles Kratzer's avatar
typos    
Gilles Kratzer committed
21
library(abn) #for the cache of scores computing function
Gilles Kratzer's avatar
Gilles Kratzer committed
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37

mcmc.out.asia <- mcmcabn(score.cache = bsc.compute.asia,
                  score = "mlik",
                  data.dists = dist.asia,
                  max.parents = 2,
                  mcmc.scheme = c(1000,99,1000),
                  seed = 42,
                  verbose = FALSE,
                  start.dag = "random",
                  prob.rev = 0.03,
                  prob.mbr = 0.03,
                  prior.choice = 2)
}
}

\keyword{datasets}