duarteguilherme / congressbr

An R package that returns tidy data from the APIs of the Brazilian Federal Senate and Chamber of Deputies.
https://robertmyles.github.io/congressbr/
Other
43 stars 6 forks source link

Data prep for Stan, JAGS, etc. #22

Closed RobertMyles closed 7 years ago

RobertMyles commented 7 years ago

Some functions that prepare vote data for use with ideal-point analyses would be great. We'll need to import the rollcall function from pscl for wnominate and ideal. JAGS and MCMCpack take a matrix of roll calls, and Stan takes this matrix as a vector with the NA deleted out.

danilofreire commented 7 years ago

That's a great idea! It would help tremendously those who work with ideal points. They're the main "target" of the package, I believe. I'm just upvoting that haha :)

RobertMyles commented 7 years ago

Let's leave this for a future version.