R/logit.R

Defines functions logit

Documented in logit

#' logit
#' 
#' does what you want
#' 
#' @seealso \code{\link[chf]{invlogit}}
#' @param p the numeric vector to which the deed is done
#' @return a numeric vector deed done
#' @export
#' @examples 
#' anum <- -0.08004271
#' invlogit_anum <- exp(anum) / (exp(anum) + 1)
#' 
#' logit(invlogit_anum)
 
logit <- function(p) log(p / (1 - p))
williamcioffi/chf documentation built on June 14, 2025, 10:05 p.m.