Turn on suggestions

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

Showing results for

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

Options

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

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

Posted 12-14-2012 01:47 PM
(1130 views)

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

4 REPLIES 4

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

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.

--

Paige Miller

Paige Miller

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

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

--

Paige Miller

Paige Miller

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

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.

--

Paige Miller

Paige Miller

📢

**ANNOUNCEMENT**

The early bird rate has been extended! Register by March 18 for just $695 - $100 off the standard rate.

Check out the agenda and get ready for a jam-packed event featuring workshops, super demos, breakout sessions, roundtables, inspiring keynotes and incredible networking events.** **

Multiple Linear Regression in SAS

Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.

Find more tutorials on the SAS Users YouTube channel.