R/methods-residuals.R

#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::#
#                                                                              #
# Calls the residual method if specified for the solver.method                 #
#                                                                              #
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::#
setMethod(f = "residuals",
          signature = c(object="modelObjFit"),
          definition = function(object, ...){
                         tmp <- try(residuals(object@fitObj, ...), silent=TRUE)
                         if(class(tmp)=='try-error'){
                           warnMsg("residuals", class(object@fitObj))
                         } else {
                           matrix(tmp, ncol=1, dimnames=list(NULL,"residuals"))
                         }
                       })

Try the modelObj package in your browser

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

modelObj documentation built on May 2, 2019, 5:20 p.m.