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)
}
vandomed/dvmisc documentation built on Oct. 2, 2020, 9:50 p.m.