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

Try the grizbayr package in your browser

Any scripts or data that you put into this service are public.

grizbayr documentation built on Oct. 9, 2023, 5:10 p.m.