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

Try the ModelMetrics package in your browser

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

ModelMetrics documentation built on March 26, 2020, 7:48 p.m.