R/binaryChecks.R

Defines functions binaryChecks

binaryChecks <- function(x, method){
  if(length(unique(x)) > 2){
    stop(paste(method, "only works for binary outcomes at this time"))
  }
}
JackStat/ModelMetrics documentation built on July 6, 2021, 9:48 a.m.