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

Add final mcmcRocPrc method/example for BUGS input #71

Closed andybega closed 4 years ago

andybega commented 4 years ago

This adds the last remaining method for mcmcRocPrc to handle BUGS input. This will work now:

library(BayesPostEst)
#> Registered S3 method overwritten by 'GGally':
#>   method from   
#>   +.gg   ggplot2
bugs_logit <- BayesPostEst::bugs_logit
sim_data <- BayesPostEst::sim_data

mcmcRocPrc(bugs_logit, FALSE, FALSE, data = sim_data, yname = "Y",
           xnames = c("X1", "X2"), type = "logit")
#> mcmcRocPrc object
#> curves: FALSE; fullsims: FALSE
#> AUC-ROC: 0.627
#> AUC-PR:  0.621

Created on 2020-10-21 by the reprex package (v0.3.0)

This closes #69 and closes #5.

EDIT: found what broke Travis (close #73)