data(s109)
id1 <- ideal(s109,
d=1,
meanzero=TRUE,
store.item=TRUE, ## need this for predictions
maxiter=1000, ## short run for demo purposes
burnin=100,
thin=10)
phat <- predict(id1)
plot(phat,type="legis")
plot(phat,type="votes")
Run the code above in your browser using DataLab