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
- /
- Stat Procs
- /
- Smoothing matrix denoted by "L"

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

06-16-2016 06:41 AM

Dear SAS Statistical Procedures Community,

I am Josephine Sabbagh, and I have alreay read the "SAS/STAT® 9.2 User’s Guide The LOESS Procedure (Book Excerpt)" in order to apply the Loess procedure to get a fitted curve for a specific model that I am working on.

The guide is very clear and easy to understand, but I still have to ask only one question about how to display the elements of the smoothing matrix denoted by "L" and described in page 3218.

Please note that displaying the trace of L works very easily, but I only need your help to know more about "L".

So if you may please tell me if "L" can be also called "Hat Matrix" or "Projection Matrix" and how to display its elements.

Your help will be much appreciated.

Thank you in advance!

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

06-16-2016 08:37 AM

You ask an interesting question, but I don't think you can output the L matrix from PROC LOESS. The L matrix is primarily a theoretical construct. It isn't explicitly formed by most PROC LOESS calls.

LOESS (which you can think of as LOcal EStimation) uses weighted nearest neighbor computations to obtain the predicted values. At a point (x_i, y_0 you can obtain yHat_i as a weighted sum of the k observations whose X value is closest to x_i. When the x_i values are evenly spaced and the local polynomial is a constant (DEGREE=0), you might be able to write down the L matrix by hand.

What do you want to do with the L matrix? Perhaps there are other ways to accomplish your goals.

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

06-16-2016 08:53 AM

I need to understand well how to display the elements of this matrix because it is very important for the computation of AICC, degree of freedom etc... So when I have to present my statistical study done by SAS using Proc Loess procedure, I might present it very detailed. That's why I need to output "L".

Kindly note that the my Data is attached. Can you explain to me "L" using my example?

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

06-16-2016 09:29 AM

I won't argue with you about whether you need to output L or not. However, I do not know a way to get it automatically from PROC LOESS. I suggest you talk to your supervisor or academic advisor to clarify whether he or she expects that kind of detail.

Yes, certain elements of the matrix L are used to compute statistics such as AICC and DOF. However, as shown in various papers by Cleveland (references in the doc), you do not need all of L, just the trace of certain matrices that depend on L. For efficiency, PROC LOESS does not usually form L directly for these computations, but uses approximations.

Since you and I have different opinions about the importance of L, I'll let others comment and help. Good luck on your problem.

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

06-18-2016 11:00 AM

@rick_SAS Thank you so much Mr Rick for your advice.Maybe I wasn't very clear by sending you my help request.I don't know wether you can help me find my solution by telling me maybe the formula that is used by SAS to find the elements of the diagonal of the smoothing matrix. This will at least help me know how does it work to find the trace, not even to calculate the elements.

Thank you in advance.

Thank you in advance.