R/logit.R

Defines functions logit

Documented in logit

#' Calculate logit
#'
#'This function calculates logit of an inputted probability.
#' @param p a probability between 0 and 1
#' @keywords logistic
#' @export
#' @examples
#' logit(0.3)

logit <- function(p){log(p/(1-p))}
fboehm/boehm documentation built on Feb. 16, 2020, 3:42 a.m.