Bartregress

Bartlett's Three Group Regression.
391 téléchargements
Mise à jour 17 juin 2010

Afficher la licence

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.

BARTREGRESS is a Model II procedure. It is an approach to estimate the functional relationship in Model II by estimating the slope from segments of the sample arrayed by magnitude of the x variate. Ricker (1973) argues that this method yield biased estimates of functional relationships. Its main handicap is that the regression lines are not the same depending on whether the grouping (into three groups) is made based on x or y. The regression line is not guaranteed to pass through the centroid of the scatter of points and the slope estimator is not symmetric. However, here it is developed the computational procedure to all those people interested on it.

[B,BINT] = BARTREGRESS(X,Y,ALPHA) returns the vector B of regression coefficients in the linear Model, a matrix BINT of the given confidence intervals for B, and the N three groups size vector.

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

Syntax: [b,bint,n] = Bartregress(x,y,alpha)

Citation pour cette source

Antonio Trujillo-Ortiz (2024). Bartregress (https://www.mathworks.com/matlabcentral/fileexchange/27919-bartregress), MATLAB Central File Exchange. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R14
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Publié le Notes de version
1.1.0.0

It was added an appropriate format to cite this file.

1.0.0.0