File Exchange

image thumbnail

Regression Utilities

version (14.7 KB) by Joe Henning
A variety of regression utilities


Updated 15 Nov 2020

View Version History

View License

This zip file contains 11 functions related to regression. The functions are:

1) cookdist.m - Cook's distance for data points
2) dregr.m - Deming regression
3) irsvdregr.m - Iterative Reweighted Least Squares (IRLS) regression
4) ladratregr.m - Least Absolute Deviation (LAD) rational regression
5) ladregr.m - Least Absolute Deviation (LAD) regression
6) lregr.m - Linear regression
7) ratregr.m - Weighted least squares rational regression
8) ripley.m - Total Least Squares (TLS) linear polynomial using Ripley's algorithm
9) svdregr.m - Weighted least squares regression using singular value decomposition
10) totregr.m - Total Least Squares regression using the Delta Method
11) tsregr.m - Theil-Sen estimator

Cite As

Joe Henning (2021). Regression Utilities (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (3)

jinpeng xing

Sergey Zabolotni


In this package, I especially like and use the total square regression and the LAD polynomial regression. A tweak I've added to my copy of LADREGR is "p = fliplr(p');" to bring the output p into alignment with Matlab's POLYVAL.

MATLAB Release Compatibility
Created with R14SP3
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!