R/utils.R

Defines functions printWarnings

Documented in printWarnings

#' Generate warning messages for regression model
#' @param model result of call to regressResiduals
printWarnings = function(model){
  if(model$ierr != 0){
    warning(paste('Quantile Regresion ran into warning', model$ierr, ' and had ',
                  model$it,' iterations.'))
    if(model$it < 12){
      warning('Iterations failed to go past threshold')
    }
  }
}
be-green/quantspace documentation built on March 20, 2024, 5:30 p.m.