coefficients              package:base              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 (`.Alias') for it.

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

     coef(x, ...)
     coefficients(x, ...)

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

       x: 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.  (Note that the method is `coef'
     and not `coefficients'.)

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

     Coefficients extracted from the model object `x'.

_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))

