Towards Data Science, Data Analysis, Bayesian Statistics, Data Visualization, Deep Dives.
variable `Response’ is identified as a number ranging from 0 to 4. Of course, we are fully aware that this response is not numeric, but an ordered (ordinal) categorical variable. So we do the conversion explicitly: df$Response <- factor(df$Response, levels = c("0", "1", "2", "3", "4"), ordered =