BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
tka726
Obsidian | Level 7

Hello!

I am trying to calculate a sample size for a non-inferiority test comparing 2 proportions. I am trying to use the Farrington Manning test, however I am getting an error and the code will not run. It seems that SAS does not recognize this test.

 

proc power;
twosamplefreq test=fm
groupproportions = (0.908 0.943)
nullproportiondiff = -0.1
alpha = 0.05
sides = U
ntotal = .
power =0.80;
run;

 

The following error is in the log:


ERROR: NTOTAL is not available as a result option for TEST=HTML4 °y.

 

Any ideas why the test=fm is causing problems? I am using SAS version 9.4

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

I suspect this is a version mismatch, ie it runs fine for me in SAS 9.4 TS1M3, SAS/STAT 14.1. I suspect you have an earlier version. Check your version (proc product_status;run;) and then check the PROC POWER documentation for the correct version. You'll likely find that option is not available.

 


@tka726 wrote:

Hello!

I am trying to calculate a sample size for a non-inferiority test comparing 2 proportions. I am trying to use the Farrington Manning test, however I am getting an error and the code will not run. It seems that SAS does not recognize this test.

 

proc power;
twosamplefreq test=fm
groupproportions = (0.908 0.943)
nullproportiondiff = -0.1
alpha = 0.05
sides = U
ntotal = .
power =0.80;
run;

 

The following error is in the log:


ERROR: NTOTAL is not available as a result option for TEST=HTML4 °y.

 

Any ideas why the test=fm is causing problems? I am using SAS version 9.4

 

Thanks!


 

View solution in original post

1 REPLY 1
Reeza
Super User

I suspect this is a version mismatch, ie it runs fine for me in SAS 9.4 TS1M3, SAS/STAT 14.1. I suspect you have an earlier version. Check your version (proc product_status;run;) and then check the PROC POWER documentation for the correct version. You'll likely find that option is not available.

 


@tka726 wrote:

Hello!

I am trying to calculate a sample size for a non-inferiority test comparing 2 proportions. I am trying to use the Farrington Manning test, however I am getting an error and the code will not run. It seems that SAS does not recognize this test.

 

proc power;
twosamplefreq test=fm
groupproportions = (0.908 0.943)
nullproportiondiff = -0.1
alpha = 0.05
sides = U
ntotal = .
power =0.80;
run;

 

The following error is in the log:


ERROR: NTOTAL is not available as a result option for TEST=HTML4 °y.

 

Any ideas why the test=fm is causing problems? I am using SAS version 9.4

 

Thanks!


 

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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
  • 1 reply
  • 2672 views
  • 0 likes
  • 2 in conversation