R/prob_odds.R

Defines functions prob_odds

Documented in prob_odds

#' Convert Probability to Odds
#' 
#' Defined simply as \code{x / (1 - x)}.
#' 
#' @param x Numeric vector.
#' 
#' @return Numeric vector.
#'
#' @export
prob_odds <- function(x) {
  out <- 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.