R/logit.R

Defines functions logit

Documented in logit

#' logit returns the logit
#' @title Return the logit
#' @author Marc Girondot \email{marc.girondot@@gmail.com}
#' @return A value
#' @param p The probability
#' @description Return the logit.
#' @family logit
#' @examples
#' n <- logit(0.5)
#' invlogit(n)
#' @export

logit <- function(p) {log(p/(1-p))}

Try the HelpersMG package in your browser

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

HelpersMG documentation built on Oct. 5, 2023, 5:08 p.m.