Monterey Bay Aquarium Research Institute
Edward T. Peltzer
Model I and Model II Regressions

Graphs of the Model I and Model II Regressions

Here are the figures for my MATLAB® shell-script routines for fitting a line to the example dataset (see the file: data.txt) using the various linear regression models:

Model I
Regressions
M-file Single Line
Plots
Combined
Plots
Y-on-X Lsqfity.m       JPG          Postscript         JPG          Postscript  
X-on-Y Lsqfitx.m JPG Postscript JPG Postscript
Weighted Y-on-X Lsqfityw.m JPG Postscript JPG Postscript
Weighted Y-on-X Lsqfityz.m JPG Postscript JPG Postscript
Model II
Regressions
      M-file       Single Line
Plots
Combined
Plots
Major axis Lsqfitma.m JPG Postscript JPG Postscript
Geometric mean Lsqfitgm.m JPG Postscript JPG Postscript
Least-squares-bisector     Lsqbisec.m JPG Postscript JPG Postscript
Least-squares-cubic     Lsqcubic.m JPG Postscript JPG Postscript

 

 

 

Last updated: Feb. 05, 2009
Questions? Comments? Please contact Edward Peltzer.