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
- /
- How to write the syntax to perform Lund and presco...

- 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-21-2017 10:46 AM

Hi All,

I want to know how to write the syntax to get the lund and prescott test to identify outliers in Bioequivalence.

Thanks.

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

Posted in reply to MohamedYehia

06-21-2017 10:50 AM

You might post a reference to what this test is. Sometimes specific fields will use a common statistical test and attach a name to the first in a field that used if for some specific purpose or interpretation rules.

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

Posted in reply to MohamedYehia

06-21-2017 11:00 AM

Here is a link to a community thread on someone asking a similar question a few years ago.

Perhaps some of the code / websites linked in the thread will be helpful for you.

https://communities.sas.com/t5/SAS-Procedures/Lund-s-Test-for-Outlier-Analysis/td-p/151289

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

Posted in reply to MohamedYehia

06-21-2017 04:20 PM

According to this article on the Lund-Prescott test, the test requires computing the critical value of an F distribution and them flagging standardized residuals whose lengths that exceed that value. You could certainly implement that in SAS by using the OUTPUT statement in a regression procedure to generate the standardized residuals and then writing a DATA step to flag the Std Resid that exceed the critical value.

However, I suggest you look at the ROBUSTREG procedure, which can automatically flag outliers and high-leverage points based on robust linear models. See the Getting Started example in the ROBUSTREG documentation, which shows example data, syntax, and interpretation of the results.