demo/ei.MD.bayes.R

data(redistrict) 
data(tuneA)
data(tuneB)
tuneB <- array(tuneB[[1]], dim = c(3, 2, 150))

out2 <- ei.MD.bayes(cbind(dem, rep, novote) ~ cbind(black, white, hispanic),
             data = redistrict, lambda1 = 4, lambda2 = 2,
                    tune.list = list(tuneA, tuneB), sample = 1000,
                    thin = 200, burnin = 0, verbose = 1000)
summary(out2)


data(senc)
out3 <- ei.MD.bayes(cbind(dem, rep, non) ~ cbind(white, black, natam),
                       covariate = ~ I(white/total),
                       data = senc,
                       sample = 1000,
                       thin = 100, burnin = 100000, verbose = 1000, ret.beta='r')
summary(out3)

Try the eiPack package in your browser

Any scripts or data that you put into this service are public.

eiPack documentation built on March 7, 2023, 7:04 p.m.