naresid                package:stats                R Documentation

_A_d_j_u_s_t _f_o_r _M_i_s_s_i_n_g _V_a_l_u_e_s

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

     Use missing value information to adjust residuals and predictions.

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

     naresid(omit, x, ...)
     napredict(omit, x, ...)

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

    omit: an object produced by an 'na.action' function, typically the
          '"na.action"' attribute of the result of 'na.omit' or
          'na.exclude'.

       x: a vector, data frame, or matrix to be adjusted based upon the
          missing value information.

     ...: further arguments passed to or from other methods.

_D_e_t_a_i_l_s:

     These are utility functions used to allow 'predict', 'fitted' and
     'residuals' methods for modelling functions to compensate for the
     removal of 'NA's in the fitting process.  They are used by the
     default, '"lm"', '"glm"' and '"nls"' methods, and by further
     methods in packages 'MASS', 'rpart' and 'survival'.  Also used for
     the scores returned by 'factanal', 'prcomp' and 'princomp'.

     The default methods do nothing.  The default method for the
     'na.exclude' action is to pad the object with 'NA's in the correct
     positions to have the same number of rows as the original data
     frame.

     Currently 'naresid' and 'napredict' are identical, but future
     methods need not be.  'naresid' is used for residuals, and
     'napredict' for fitted values and predictions.

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

     These return a similar object to 'x'.

_N_o_t_e:

     Packages 'rpart' and 'survival5' used to contain versions of these
     functions that had an 'na.omit' action equivalent to that now used
     for 'na.exclude'.

