localreg icon indicating copy to clipboard operation
localreg copied to clipboard

LOESS/LOWESS procedure for enhanced robustness

Open sigvaldm opened this issue 4 years ago • 3 comments
trafficstars

One of the original papers about the LOESS/LOWESS method added an iterative method for giving less weight to outliers.

sigvaldm avatar Aug 20 '21 07:08 sigvaldm

Seconding this post. Would truly be enhanced with the addition of an iterative method.

danoffenbacker avatar Mar 29 '22 14:03 danoffenbacker

Thanks for your input :) Unfortunately, I don't think I have time to implement it in the near future. When I do find time for localreg, though, I now know this is a requested feature.

sigvaldm avatar Mar 30 '22 08:03 sigvaldm

I implemented this once, a long time ago, in a TurboPascal program. It would calculate the LOWESS smoothed curve. Then when a function key was pressed, it would de-weight all data points in the smoothing window outside of the 2-sigma standard error limits and re-calculate. It had the nice feature that showed the disqualified points with a different symbol (open instead of closed squares) so it was easy to see what the routine had done. You could keep repeating the procedure, but that usually wasn't very helpful because eventually you would usually eliminate most of the data points.

tbpassin avatar Nov 18 '22 04:11 tbpassin