image thumbnail

MyRegression

version 2.0.0.0 (16.6 KB) by Giuseppe Cardillo
A simple function on LS linear regression with many informative outputs

7.3K Downloads

Updated 05 Apr 2018

From GitHub

View license on GitHub

This function computes a least-square linear regression suppling several output information.
Syntax: myregr(x,y)

Inputs:
X - Array of the independent variable
Y - Dependent variable. If Y is a matrix, the i-th Y row is a
repeated measure of i-th X point. The mean value will be used
verbose - Flag to display all information (default=1)
Outputs:
- Slope with standard error an 95% C.I.
- Intercept with standard error an 95% C.I.
- Pearson's Correlation coefficient with 95% C.I. and its
adjusted form (depending on the elements of X and Y arrays)
- Spearman's Correlation coefficient
- Regression Standard Error
- Total Variability
- Variability due to regression
- Residual Variability
- Student's t-Test on Slope (to check if slope=0)
- Student's t-Test on Intercept (to check if intercept=0)
- Modified Levene's test for homoschedasticity of residuals
- Power of the regression
- Deming's regeression
- a plot with:
o Data points
o Least squares regression line
o Red dotted lines: 95% Confidence interval of regression
o Green dotted lines: 95% Confidence interval of new y
evaluation using this regression.
- Residuals plot

SEE also myregrinv, myregrcomp

Created by Giuseppe Cardillo
giuseppe.cardillo-edta@poste.it

To cite this file, this would be an appropriate format: Cardillo G. (2007) MyRegression: a simple function on LS linear regression with many informative outputs. http://www.mathworks.com/matlabcentral/fileexchange/15473

Cite As

Giuseppe Cardillo (2021). MyRegression (https://github.com/dnafinder/myregr), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired by: powerStudent

Inspired: myregrinv

Community Treasure Hunt

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

Start Hunting!
To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.