BookmarkSubscribeRSS Feed
Fluorite | Level 6

Hi All,


I would like to use PROC T TEST for superiority testing. The hypothesis will be tested by one-sided t-test at the alpha level of 0.025. Rejection of the null-hypothesis is consistent with superiority of the investigational treatment to the placebo.

Do you have any idea how can we perform in SAS?


Thanking in Advance

Super User

The option SIDES on the Proc Ttest statement is used to indicate 2 L(ower one side) or U(pper oneside) test, default is 2

The option Alpha sets the significance, use Alpha=0.025.  Default is 0.05.


Data should have a Class variable to indicate which of the two populations records come from (treatment or placebo), this variable can be numeric or character and is indicated with a CLASS statement.


A variable(s) should hold the measure(s) of interest and must be numeric and would be placed on a VAR statement;


If you are testing one variable against a known value then you only need the variable and you would specify the "known Value" with the h0 option such as h0=30. Translates as: the Null hypothesis is the value is 30.


There are several examples in the online help you should have available.



Fluorite | Level 6

Thank You for the response.


See the discussion and examples in Castello and Watts (2015), "Equivalence and Noninferiority Testing Using SAS/STAT® Software"



Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Get the $99 certification deal.jpg



Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 3 in conversation