ShanaScogin / BayesPostEst

An R package to generate and plot postestimation quantities after estimating Bayesian regression models using MCMC
https://shanascogin.github.io/BayesPostEst/
GNU General Public License v3.0
12 stars 2 forks source link

Generalize mcmcRocPrc for various kinds of input objects #68

Closed andybega closed 4 years ago

andybega commented 4 years ago

No R check ERRORs, WARNINGs, or NOTEs. (Travis-CI on my fork)

jayrobwilliams commented 4 years ago

This looks fantastic! When I have some time I'll probably follow a similar approach with mcmcReg() and mcmcTab() using methods and class constructor functions instead of the giant block of conditionals at the top of each right now.

andybega commented 4 years ago

Thanks! I wasn't sure if using generic + methods ends up making it more complicated than it needs to be.

jkarreth commented 4 years ago

Thank you indeed @andybega , this is great! I'm working on getting a BUGS object, hopefully within 1-2 days.

jkarreth commented 4 years ago

I added a BUGS object representing output from a logit model: data/bugs_logit.rda

This was created by adapting data-raw/jags_logit.R to R2OpenBUGS.

(Note that the actual script to create bugs_logit.rda is not on Github, I asked someone else to run it on their machine. Hope this is OK for future CRAN uploads etc.)

@andybega @jayrobwilliams does this give you enough for the adjusting for BUGS objects as input?