data(s109)
## short run for examples
id1 <- ideal(s109,
d=1,
meanzero=FALSE, ## no identification...!
store.item=TRUE,
maxiter=500,
burnin=0,
thin=10)
id1pp <- postProcess(id1,
constraints=list(BOXER=-1,INHOFE=1))
id2 <- ideal(s109,
d=2,
store.item=TRUE,
maxiter=1e4,
burnin=0,
thin=25)
tracex(id2,d=1:2,
legis=c("BOXER","INHOFE","BYRD","CHAFEE","MCCAIN"),
showAll=TRUE)
id2pp <- postProcess(id2,
constraints=list(BOXER=c(-1,0),
INHOFE=c(1,0),
CHAFEE=c(0,.25)))
tracex(id2pp,d=1:2,
legis=c("BOXER","INHOFE","COLLINS","FEINGOLD","COLEMAN",
"CHAFEE","MCCAIN","KYL"),
showAll=TRUE)
Run the code above in your browser using DataLab