Re: [R] How to fit a linear model to data by minimizing the mean absolute percent error?

2013-01-14 Thread Andre Cesta
From: Bert Gunter To: Andre Cesta Cc: "r-help@r-project.org" Sent: Monday, 14 January 2013, 13:34 Subject: Re: [R] How to fit a linear model to data by minimizing the mean absolute percent error? Take the logs of both side and minimize the absolute error on the log scale, then

[R] How to fit a linear model to data by minimizing the mean absolute percent error?

2013-01-14 Thread Andre Cesta
Hi All, I wonder if you can help me with an aparently simple task.  I have been searching examples for this without any luck: #Assume x<-1:10  #x ranges from 1 to 10. y<-x*runif(10)+ 1.5*x  #y is a linear function of x with some error. Add uniform error that is scaled to be larger as x values a

[R] How to fit a linear model to data by minimizing the mean absolute percent error?

2013-01-14 Thread Andre Cesta
Hi All, I wonder if you can help me with an aparently simple task.  I have been searching examples for this without any luck: #Assume x<-1:10  #x ranges from 1 to 10. y<-x*runif(10)+ 1.5*x  #y is a linear function of x with some error. Add uniform error that is scaled to be larger as x values

[R] Successfully connected GNU R to PostgreSQL on windows XP.

2008-07-30 Thread Andre Cesta
l the steps and documented them here: http://code.google.com/p/jwanalytics/wiki/GnuRe Thanks for making it easy to do it. The help files within GNU R are excellent quality. Best regards, André Andre Cesta, Eng, MSc, SCJP, SCJA http://geocities.com/aa

[R] Connecting R to PostgreSQL on Windows.

2008-07-30 Thread Andre Cesta
easy to do it. The help files within GNU R are excellent quality. Best regards, André Andre Cesta, Eng, MSc, SCJP, SCJA http://geocities.com/aa