"Resistant Line" is an important EDA way of fitting a regression model. The function here develops the discussion in Section 4.5.1 Resistant Line. An alternative for this function is available in "rline" function of the "LearnEDA" package.
resistant_line(x, y, iterations)
the covariate or independent vector
the dependent variate
the required number of iterations
Prabhanjan N. Tattar
Velleman, P.F., and Hoaglin, D.C. (2004). ABC of Exploratory Data Analysis. Duxbury Press, Boston. Republished in 2004 by The Internet-First University Press.
LearnEDA::rline