##---------------------------------------------##
## Logit Transformation ##
##---------------------------------------------##
#' Logit Transformation
#'
#' This function takes a number and transforms it to
#' the logit scale
#'
#' @param p Number that you wish to transform
#' @export
#' @examples logit(p)
logit <- function(p){
param <- 1/(1 + exp(-p))
return(param)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.