knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(rdemopkg)
We can use the logit
command to calculate the log odds of a vector of probabilities.
For example,
logit(probabilities$p)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.