

   residuals {base}                             R Documentation

   EExxttrraacctt MMooddeell RReessiidduuaallss

   DDeessccrriippttiioonn::

        `residuals' is a generic function which extracts model
        residuals from objects returned by modeling functions.

        The abbreviated form `resid' is an alias for `residu-
        als'.  It is intended to encourage users to access
        object components through an accessor function rather
        than by directly referencing an object slot.

        All object classes which are returned by model fitting
        functions should provide a `residuals' method.  (Note
        that the method is `residuals' and not `resid'.)

   UUssaaggee::

        residuals(x, ...)
        resid(x, ...)

   AArrgguummeennttss::

          x: an object for which the extraction of model resid-
             uals is meaningful.

        ...: other arguments.

   VVaalluuee::

        Residuals extracted from the object `x'.

   SSeeee AAllssoo::

        `coefficients', `fitted.values', `glm', `lm'.

