

effects {base}                               R Documentation

_E_f_f_e_c_t_s _f_r_o_m _F_i_t_t_e_d _M_o_d_e_l

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

     Returns (orthogonal) effects from a fitted (general-
     ized) regression model.  In case of a full rank n * p
     `model.matrix', the first p effects correspond to coef-
     ficients and the remaining n-p ones to residuals.

_U_s_a_g_e_:

     effects(object, ...)
     effects.lm(object, set.sign=FALSE)

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

  object: list; typically, the result of a model fitting
          function such as `lm'

set.sign: logical ~~Describe `set.sign' here~~

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

     ...... FIXME ......

     This page is not complete yet!

_V_a_l_u_e_:

     A (named) numeric vector of the same length as `residu-
     als'.  The first p values are labeled according to the
     corresponding coefficients, the remaining ones are
     unlabeled.

     The result currently has `class' `"coef"'.

     ...... FIXME ......

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

     `coef', `fitted', etc.

_E_x_a_m_p_l_e_s_:

     y <- c(1:3,7,5)
     x <- c(1:3,6:7)
     ( ee <- effects(lm(y ~ x)) )
     c(round(ee - effects(lm(y+10 ~ I(x-3.8))),3))# just the first is different

