line                   package:eda                   R Documentation

_R_o_b_u_s_t _L_i_n_e _F_i_t_t_i_n_g

_D_e_s_c_r_i_p_t_i_o_n:

     This function fits a line robustly as recommended in  Exploratory
     Data Analysis.

_U_s_a_g_e:

     line(x, y)

     coefficients(tukeyline.obj)
     residuals(tukeyline.obj)
     fitted.values(tukeyline.obj)
     print(tukeyline.obj)

_A_r_g_u_m_e_n_t_s:

     x,y: the arguments can be any way of specifying x-y pairs.

_V_a_l_u_e:

     An object of class `tukeyline'.

     Methods are available for the generic functions `coefficients',
     `residuals', `fitted.values', and `print'.

_R_e_f_e_r_e_n_c_e_s:

     Tukey, J. W. (1977). Exploratory Data Analysis, Reading
     Massachusetts: Addison-Wesley.

_S_e_e _A_l_s_o:

     `lm'.

_E_x_a_m_p_l_e_s:

     library(eda)
     data(cars)
     plot(cars)
     z <- line(cars)
     abline(coef(z))

