R/I_getResTypeAndMethod.R

Defines functions .getResTypeAndMethod

# Returns the appropriate residual type for each GAM family

.getResTypeAndMethod <- function(fam){
  
  type <- "deviance"
  method <- "simul1"
  
  if( !is.null(fam$cdf) ){
    type <- "tnormal"
    method <- "tnormal"
  }

  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 April 11, 2025, 5:44 p.m.