coef                  package:stats                  R Documentation

_E_x_t_r_a_c_t _M_o_d_e_l _C_o_e_f_f_i_c_i_e_n_t_s

_D_e_s_c_r_i_p_t_i_o_n:

     'coef' is a generic function which extracts model coefficients
     from objects returned by modeling functions.  'coefficients' is an
     _alias_ for it.

_U_s_a_g_e:

     coef(object, ...)
     coefficients(object, ...)

_A_r_g_u_m_e_n_t_s:

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

     ...: other arguments.

_D_e_t_a_i_l_s:

     All object classes which are returned by model fitting functions
     should provide a 'coef' method or use the default one. (Note that
     the method is 'coef' and not 'coefficients'.)

     Class '"aov"' has a 'coef' method that does not report aliased
     coefficients (see 'alias').

_V_a_l_u_e:

     Coefficients extracted from the model 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:

     'fitted.values' and 'residuals' for related methods; 'glm', 'lm'
     for model fitting.

_E_x_a_m_p_l_e_s:

     x <- 1:5; coef(lm(c(1:3,7,6) ~ x))

