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 Dec. 18, 2019, 1:35 a.m.