SAS Programming

DATA Step, Macro, Functions and more
BookmarkSubscribeRSS Feed
SR79
Fluorite | Level 6

Hello

 

I am comparing two proportions for non-inferiority and I know I can use proc freq to do farrington manning, but I would like to be able to use proc ttest so that I would have: 

 

proc ttest data=xx h0=noninf_margin alpha=xx;

class group;

var xx;

run; 

 

Is there an option to do method=farrington manning in this code?

 

Thanks!

 

3 REPLIES 3
DWilson
Pyrite | Level 9

@SR79 wrote:

Hello

 

I am comparing two proportions for non-inferiority and I know I can use proc freq to do farrington manning, but I would like to be able to use proc ttest so that I would have: 

 

proc ttest data=xx h0=noninf_margin alpha=xx;

class group;

var xx;

run; 

 

Is there an option to do method=farrington manning in this code?

 

Thanks!

 


This seems to have examples of what you want to accomplish:

https://support.sas.com/resources/papers/proceedings15/SAS1911-2015.pdf

 

see table 4

 

 

 

SR79
Fluorite | Level 6
Thanks. The prpc ttest can give me noninf but it's not giving me Farrington
Manning CIs. Do you know if there's a function call I can do to incorporate
the FM?
DWilson
Pyrite | Level 9

@SR79 wrote:
Thanks. The prpc ttest can give me noninf but it's not giving me Farrington
Manning CIs. Do you know if there's a function call I can do to incorporate
the FM?

Just use the CIs output by proc ttest.

Rows 1 and 2 in table 4 discuss how to use the standard CIs to determine if the inferiority hypothesis should be rejected.

 

 

 

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 914 views
  • 0 likes
  • 2 in conversation