Skip to content

Instantly share code, notes, and snippets.

@stemangiola
Created April 16, 2019 23:41
Show Gist options
  • Save stemangiola/9f466016fbe368712c92b64586318e2c to your computer and use it in GitHub Desktop.
Save stemangiola/9f466016fbe368712c92b64586318e2c to your computer and use it in GitHub Desktop.
Some useful functions about bayes object parsing
get_bimodality = function(fit) {
fit %>%
tidybayes::gather_draws(exposure_rate[S]) %>% summarise(
bimodal = diptest::dip.test(`.value`) %$% `p.value`
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment