Skip to content
Prev 70748 / 398525 Next

Errors in Variables

I have a routine that corrects regression coefficients for the bias towards zero that occurs when there is error in the measurement of the independent variable. The code only works for a single independent variable, i.e. y~x. At this time the program does not calculate the SE of the coefficient. The program uses properly weighted perpendicular least squares regression. I would be happy to share the code if asked to do so by anyone who has participated in this thread. 
John 

John Sorkin M.D., Ph.D.
Chief, Biostatistics and Informatics
Baltimore VA Medical Center GRECC and
University of Maryland School of Medicine Claude Pepper OAIC

University of Maryland School of Medicine
Division of Gerontology
Baltimore VA Medical Center
10 North Greene Street
GRECC (BT/18/GR)
Baltimore, MD 21201-1524

410-605-7119 
- NOTE NEW EMAIL ADDRESS:
jsorkin at grecc.umaryland.edu
Dear Spencer,
I'm not sure how that would work, but seems similar to averaging the
regressions of y on x and x on y.
I'm not familiar with ODRpack, but it seems to me that one could fairly
simply minimize the sum of squared least distances using, e.g., optim.

Regards,
 John
______________________________________________
R-help at stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help 
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html