Linear regression with statistics for multiple category data

This function does linear regression with statistics for multiple category data (OLS and RMA)
36K Downloads
Updated 9 Nov 2012

View License

Takes six column vectors, a description, x label and y label and plots the data and outputs all the statistics (r squared, OLS slope, RMA slope, 95% CI intervals). Uses different colours for the two different categories. Both OLS and RMA slopes are output

Cite As

Dr. Soumya Banerjee (2024). Linear regression with statistics for multiple category data (https://www.mathworks.com/matlabcentral/fileexchange/38955-linear-regression-with-statistics-for-multiple-category-data), 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/html/

Version Published Release Notes
1.0.0.0