R/I_getResTypeAndMethod.R

Defines functions .getResTypeAndMethod

# Returns the appropriate residual type for each GAM family

.getResTypeAndMethod <- function(fam){
  
  type <- switch(fam, 
                 "shash" = "tnormal", 
                 "gaulss" = "deviance",
                 "deviance") # Default
  
  method <- switch(fam, 
                   "shash" = "tnormal",
                   "gaulss" = "normal",
                   "simul1") # Default
  
  return( list("type" = type, "method" = method) )
          
}

Try the mgcViz package in your browser

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

mgcViz documentation built on Oct. 6, 2023, 5:09 p.m.