R/validate.family.R

validate.family <- function(family){
  
  if(!(family %in% c('gaussian', 'binomial'))){
    msg <- 'family should be either \'gaussian\' or \'binomial\''
    stop(msg)
  }
  
}

Try the ARTP2 package in your browser

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

ARTP2 documentation built on May 2, 2019, 3:38 p.m.