R/methods-coef.R

#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::#
#                                                                              #
# Methods for obtaining parameter estimates from modelObjFit                   #
#                                                                              #
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::#
setMethod(f="coef",
          signature = c(object="modelObjFit"),
          definition = function(object,...){
                         ft <- fitObject(object)
                         tmp <- try(coef(ft,...), silent=TRUE)
                         if(class(tmp)=='try-error'){
                           warnMsg("coef", class(ft))
                           return(NULL)
                         } else {
                           return(tmp)
                         }
                       })

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.