R/invlogit.R

Defines functions invlogit

Documented in invlogit

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

invlogit <- function(n) {1/(1+exp(-n))}

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.