naExcludeMvr               package:pls               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.
     This is the 'mvr equivalent' of the 'naresid.exclude' and
     'napredict.exclude' functions.

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

     naExcludeMvr(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 three-dimensional array to be adjusted based upon the
          missing value information in 'omit'.

     ...: further arguments.  Currently not used.

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

     This is a utility function used to allow 'predict.mvr' and
     'residuals.mvr' to compensate for the removal of 'NA's in the
     fitting process.

     It is called only when the 'na.action' is 'na.exclude', and pads
     'x' with 'NA's in the correct positions to have the same number of
     rows as the original data frame.

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

     'x', padded with 'NA's along the first dimension ('rows').

_A_u_t_h_o_r(_s):

     Bjrn-Helge Mevik and Ron Wehrens

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

     'predict.mvr', 'residuals.mvr', 'napredict', 'naresid'

