#' Convert logit to probability
#' @param logit a vector of logits
#' @return a vector of probabilities
logit2prob <- function(logit){
odds <- exp(logit)
prob <- odds / (1 + odds)
return(prob)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.