## Not run:
# set.seed(2040)
# y <- rgsm(500, c(.1, .3, .4, .2), 1)
# burnin <- 100
# mcmcsim <- 500
# J <- 250
# gsm.out <- estim.gsm(y, J, 300, burnin + mcmcsim, 6500, 340, 1/J)
# summary(gsm.out, plot = TRUE, start = (burnin + 1))
# plot(gsm.out, ndens = 0, nbin = 20, histogram = TRUE, start = (burnin + 1))## End(Not run)
Run the code above in your browser using DataLab