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.
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 .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!