In using R's lm() function to calculate the line of best fit for my data, I've run into an issue: one or two major outliers in my data set are forcing the line to be somewhere where it doesn't help me understand my data.
My goal is to change the method lm() is using to calculate the line from the sum of squares of the residuals to the sum of absolute values of the residuals.
Does anyone know how to do this?
