File Exchange

image thumbnail

maregress

version 1.1 (3.2 KB) by

Major Axis Regression (Principal Axis Regression).

3 Downloads

Updated

View License

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)

Comments and Ratings (0)

Updates

1.1

It was added an appropriate format to cite this file.

MATLAB Release
MATLAB 7 (R14)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video