LinRegression

Linear regression excluding outliers and draw.
76 Downloads
Updated 29 Apr 2020

View License

Simple linear regression.
The function calculates the regression coefficients and R2.
If the OutlierErrorSigma is given, the function finds the outliers lying out of STD multiplied by the OutlierErrorSigma, and additional iteration of the regression is performed without the outliers.

Cite As

Victor Bloch (2026). LinRegression (https://www.mathworks.com/matlabcentral/fileexchange/75278-linregression), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2018b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.0.0