Skip to content

Instantly share code, notes, and snippets.

View fusaroli's full-sized avatar

Riccardo Fusaroli fusaroli

View GitHub Profile
@gongcastro
gongcastro / roc-multinomial.R
Created November 10, 2022 11:53
ROC curves for multinomial and binomial Bayesian models in brms
library(dplyr) # for data wrangling
library(tidyr) # same
library(purrr) # for functional programming
library(rlang) # for tidyeval
library(ggplot2) # for dataviz
library(ggsci) # for nice colours
library(scales) # for displaying percentages
library(brms) # for Bayesian models
library(tidybayes) # for extracting posterior draws and predictions
library(yardstick) # for generating ROC curves