Skip to content
Prev 2406 / 398506 Next

[S] regression with uncertainty in both variables

[I don't think blanketing both S and R help on this is a good idea.]
On Wed, 14 Apr 1999, Matthew Wiener wrote:
Notation: that is not a `regression' model.
Well, there are of lots of other references, even one by me, but that is
the main book. If lm and glm did this they would be wrong: it is a
different statistical model. There are several Fortran solutions on statlib
in multi/leiv?

1.      Programs for best line fitting with errors in both coordinates.

2.      D. York, "Least squares fitting of a straight line", Canadian 
                 Journal of Physics, 44, 1079-1086, 1986.
        G. Fasano and R. Vio, "Fitting straight lines with errors on both
                 coordinates", Newsletter of Working Group for Modern 
                 Astronomical Methodology, No. 7, 2-7, Sept. 1988.
        B.D. Ripley and M. Thompson, "Regression techniques for the 
                 detection of analytical bias", Analyst, 112, 377-383,
                 1987.

and I have seen an S interface somewhere (multiv?). Today, I would take the
algorithm in the last of those papers and re-write it in S in a few
minutes. A project that has, several times, nearly made the MASS library
and one I set as a exercise in my linear models course.