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)

     coef(object, ...)
     residuals(object, type, ...)
     fitted(object, ...)
     print(x, digits = max(3, getOption("digits") - 3), ...)

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

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

  object: a `tukeyline' object, typically the result of `line(*)'.

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

     An object of class `tukeyline'.

     Methods are available for the generic functions `coef',
     `residuals', `fitted', 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))
     ## Tukey-Anscombe Plot :
     plot(residuals(z) ~ fitted(z), main = deparse(z$call))

