File Exchange

image thumbnail

Fast and essential linear regression

version 1.0.1 (1.81 KB) by Martin Magris
Essential, fast and efficient simple linear regression

6 Downloads

Updated 22 Mar 2020

View Version History

View License

Essential, fast and efficient simple linear regression implementation.
Returns estimated coefficients and p-values for linear regressions of the form y~a.*X+c.
The function is easy to adapt for returning less simplistic and/or structured outputs.

This is meant to be used e.g. in complex scripts, large-scale problems, or loops, where only the estimates and optionally p-values are of interest. On the contrary, built-in functions like 'fitlm' return complex structs and several additional information that might not be of interest, affecting the execution time.

Cite As

Martin Magris (2021). Fast and essential linear regression (https://www.mathworks.com/matlabcentral/fileexchange/74669-fast-and-essential-linear-regression), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (2)

Martin Magris

Haitao Chen

MATLAB Release Compatibility
Created with R2019b
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!