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
815 Downloads
Updated 7 Jul 2014

View License

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 (2024). 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
Created with R2012a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Linear and Nonlinear Regression in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!

regress two categories for upload bothslopes v2/html/

Version Published Release Notes
1.1.0.0

Automatically combines two categories of data (fewer input parameters needed)

1.0.0.0