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)
}

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.