[R] [Fwd: Need to fit a regression line using orthogonal residuals]

Andrew Robinson A.Robinson at ms.unimelb.edu.au
Mon Jan 29 21:46:58 CET 2007

Hi Jonothan,

try the smatr package.  

I hope that this helps,


On Mon, Jan 29, 2007 at 03:32:35PM -0500, Jonathon Kopecky wrote:
> [Originally sent this to r-help at lists.R-projects.org, but in case that's 
> the wrong list I'm re-posting.  Apologies if this becomes a re-post]

> Date: Mon, 29 Jan 2007 14:52:24 -0500
> From: Jonathon Kopecky <jkopecky at umich.edu>
> To: r-help at lists.R-project.org
> Subject: Need to fit a regression line using orthogonal residuals
> I'm trying to fit a simple linear regression of just Y ~ X, but both X 
> and Y are noisy.  Thus instead of fitting a standard linear model 
> minimizing vertical residuals, I would like to minimize 
> orthogonal/perpendicular residuals.  I have tried searching the 
> R-packages, but have not found anything that seems suitable.  I'm not 
> sure what these types of residuals are typically called (they seem to 
> have many different names), so that may be my trouble.  I do not want to 
> use Principal Components Analysis (as was answered to a previous 
> questioner a few years ago), I just want to minimize the combined noise 
> of my two variables.  Is there a way for me to do this in R?
> Jonathon Kopecky
> University of Michigan

> ______________________________________________
> 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
> and provide commented, minimal, self-contained, reproducible code.

Andrew Robinson  
Department of Mathematics and Statistics            Tel: +61-3-8344-9763
University of Melbourne, VIC 3010 Australia         Fax: +61-3-8344-4599

More information about the R-help mailing list