odds_to_probs <- function(odds, log=TRUE){ if (log==TRUE){ odds = exp(odds) } probs = odds/(1+odds) return(probs) }
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.