Linear regression for multiple category data with different slopes for each
The function does OLS and RMA regression on data that is categorized into two different categories. The OLS and RMA regression is done on both categories combined and on each category individually. The function also plots three regression lines - combined and one for each category.
Cite As
Dr. Soumya Banerjee (2026). Linear regression for multiple category data with different slopes for each (https://www.mathworks.com/matlabcentral/fileexchange/40151-linear-regression-for-multiple-category-data-with-different-slopes-for-each), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired by: Graphical User Interface for Solving Ordinary Differential Equations, Linear regression on log transformed data, Graphical User Interface for Solving Ordinary Differential Equations, A Graphical User Interface for Solving Delay Differential Equations and doing Local Search, Linear regression with statistics for multiple category data
Inspired: Graphical User Interface for Solving Ordinary Differential Equations for In-Vitro Infection, healthy_disease_boxplot.zip, t-test and box plots for genes/compounds etc in healthy vs. disease, Wilcoxon rank-sum test and box plots for genes/compounds etc in healthy vs. disease
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
