turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Find a Community

- Home
- /
- Analytics
- /
- Forecasting
- /
- polynomial regression - relative least squares

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

12-14-2012 01:47 PM

Hello,

How can I tell to SAS, that as criterion I want minimizing relative least squares (not absolute) in polynomial regression?

I have data with high variability and absolute least squares are discriminating low values, because the squared error is very low.

Thanks for answers

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

Posted in reply to julob

12-14-2012 03:46 PM

I'm not sure I know the difference between "relative" least squares and "absolute" least squares. Can you explain further?

Whatever it is, the usual procedures have built in objective functions, and I don't know that you can change them. Maybe PROC NLIN would allow you to specify your own objective function.

I have data with high variability

If that's the case, you might want to consider transforming your data so that the errors in your data are closer to normally distributed, rather than "relative" least squares, whatever that is.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

Posted in reply to PaigeMiller

12-14-2012 05:27 PM

Explain: I am not minimizing SUM[(desired value - model value)^2] in the least square method, but SUM[((desired value - model value)/desired value)^2]. In that case, errors of observations with small values are equal to errors of observations with high values.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

Posted in reply to julob

12-17-2012 07:53 AM

A search of the SAS documentation doesn't show any hits for "relative least squares".

So I guess you would have to program this yourself in PROC IML or PROC NLIN

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

Posted in reply to julob

12-17-2012 09:26 AM

Side comment: there is something called iteratively re-weighted least squares, which also reduces the influence of points far away from the fitted line. You can find an example of code for iteratively reweighted least squares in the PROC NLIN documentation.