R/residuals.ml_g_fit.R

residuals.ml_g_fit <-
   function(object, type = c("raw","ss"), ...) {
   type <- match.arg(type)
   e.hat <- object$y - fitted(object)
   if (type == "ss") {
      e.hat <- e.hat /
              (object$sigma.hat * sqrt(1 - diag(hatvalues(object)))) 
    }
   return(e.hat)
}

Try the msme package in your browser

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

msme documentation built on May 2, 2019, 5:07 a.m.