Skip to content
Prev 315263 / 398503 Next

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 transform your results back. The quantreg package does L1
regression.

If you want to know **why**, this works, consult a local statistician
or post to a statistical list like stats.stackexchange.com.  This is
not an R question.

--- Bert
On Mon, Jan 14, 2013 at 4:22 AM, Andre Cesta <aacesta at yahoo.com> wrote: