residuals               package:stats               R Documentation

_E_x_t_r_a_c_t _M_o_d_e_l _R_e_s_i_d_u_a_l_s

_D_e_s_c_r_i_p_t_i_o_n:

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

     The abbreviated form 'resid' is an alias for 'residuals'. 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 for
     'residuals' and not 'resid'.)

     Methods can make use of 'naresid' methods to compensate for the
     omission of missing values.  The default, 'nls' and
     'smooth.spline' methods do.

_U_s_a_g_e:

     residuals(object, ...)
     resid(object, ...)

_A_r_g_u_m_e_n_t_s:

  object: an object for which the extraction of model residuals is
          meaningful.

     ...: other arguments.

_V_a_l_u_e:

     Residuals extracted from the object 'object'.

_R_e_f_e_r_e_n_c_e_s:

     Chambers, J. M. and Hastie, T. J. (1992) _Statistical Models in
     S_. Wadsworth & Brooks/Cole.

_S_e_e _A_l_s_o:

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

     influence.measures for standardized ('rstandard') and studentized
     ('rstudent') residuals.

