maregress

Major Axis Regression (Principal Axis Regression).
608.0 次下载
更新时间 2010/6/17

查看许可证

Model II regression should be used when the two variables in the regression equation are random and subject to error, i.e. not controlled by the researcher. Model I regression using ordinary least squares underestimates the slope of the linear relationship between the variables when they both contain error. According to Sokal and Rohlf (1995), the subject of Model II regression is one on which research and controversy are continuing and definitive recommendations are difficult to make. In Sokal and Rohlf (1981, 2nd ed.), the numerical result for major axis regression for the example data set is wrong. The mistake has been corrected in the 1995 edition.

MAREGRESS is a Model II procedure. When both variables are in the same units of measurement the slope of the major axis (principal axis) of the bivariate sample has been sugested. This method requires a knowledge of correlation techniques. A bivariate normal distribution can be represented by means of concentric ellipses describing the topography of a bell-shaped mound, and an ellipse can be described by two principal axis (major and minor) at rigth angles toeach other. Therefore the main task is to find the slope and equation of the major axis from a sample.

[B,BINT,L,ANG] = MAREGRESS(X,Y,ALPHA) returns the vector B of regression coefficients in the linear Model II, a matrix BINT of the given confidence intervals for B, the L eigenvalues of the axes, and the angle in degrees of the confidence bounds.

MAREGRESS treats NaNs in X or Y as missing values, and removes them.

Syntax: [b,bint,l,ang] = maregress(x,y,alpha)

引用格式

Antonio Trujillo-Ortiz (2024). maregress (https://www.mathworks.com/matlabcentral/fileexchange/27916-maregress), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R14
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Linear Regression 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.1.0.0

It was added an appropriate format to cite this file.

1.0.0.0