BookmarkSubscribeRSS Feed
MohamedYehia
Obsidian | Level 7

Hi All, 

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

 

Thanks.

3 REPLIES 3
ballardw
Super User

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.

jdwaterman91
Obsidian | Level 7

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

Rick_SAS
SAS Super FREQ

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.

 

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!

Register now

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 3024 views
  • 0 likes
  • 4 in conversation