# NOT RUN {
## Conditional Dirichlet model
## Set up the breast cancer dataset.
data(breast.17)
breast.data <- as.matrix(breast.17) # Data must be a matrix object.
## Generate at least two chains, from models which are the same except
## for different \eqn{M}{M} values.
set.seed(1) # initialize the seed at 1 for test purposes
breast.c1 <- dirichlet.c(breast.data, ncycles=4000, M=5)
breast.c2 <- dirichlet.c(breast.data,ncycles=4000, M=1000)
## Create list object.
breast.c1c2 <- list("5"=breast.c1$chain, "1000"= breast.c2$chain)
## Decide on some number of initial runs to omit from the analysis.
draw.post(breast.c1c2, burnin=100) # plots for hyperparameters only
# }
Run the code above in your browser using DataLab