R/odds_prob.R

Defines functions odds_prob

Documented in odds_prob

#' Convert Odds to Probability
#' 
#' Defined simply as \code{log(x / (x + 1))}.
#' 
#' @param x Numeric vector.
#' 
#' @return Numeric vector.

#' @export
odds_prob <- function(x) {
  out <- x / (x + 1)
  return(out)
}
vandomed/dvmisc documentation built on Oct. 2, 2020, 9:50 p.m.