R/is_winner_max.R

Defines functions is_winner_max

Documented in is_winner_max

#' Is Winner Max
#'
#' Determines if the max or min function should be used for win probability.
#' If CPA or CPC distribution, lower is better, else higher number is better.
#'
#' @param distribution String: the name of the distribution
#'
#' @return Boolean TRUE/FALSE
#'
is_winner_max <- function(distribution){
  switch(distribution,
         "cpc" = ,
         "cpa" = FALSE,
         TRUE)
}
rangi513/grizbayr documentation built on Oct. 17, 2023, 1:22 a.m.