R/prob_logit.R

Defines functions prob_logit

Documented in prob_logit

#' Convert Probability to Logit
#' 
#' Defined simply as \code{log(x / (1 - x))}.
#' 
#' @param x Numeric vector.
#' 
#' @return Numeric vector.
#'
#' @export
prob_logit <- function(x) {
  out <- log(x / (1 - x))
  return(out)
}

Try the dvmisc package in your browser

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

dvmisc documentation built on May 2, 2019, 5:51 p.m.