R/logit.R

Defines functions logit

Documented in logit

#' Logit function
#'
#' Computes logit transformation.
#'
#' @param p probability
#' @return \code{ logit(p)} returns [log(p/(1-p)]
#' @author Jeff Laake
#' @keywords utility
logit <- function(p){
  log(p/(1-p))
}

Try the mrds package in your browser

Any scripts or data that you put into this service are public.

mrds documentation built on July 9, 2023, 6:06 p.m.