#' Convert Odds to Probability
#'
#' Defined simply as \code{log(x / (x + 1))}.
#'
#' @param x Numeric vector.
#'
#' @return Numeric vector.
#' @export
odds_prob <- function(x) {
out <- x / (x + 1)
return(out)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.