BookmarkSubscribeRSS Feed
Deanna_Payne
Obsidian | Level 7

Can someone please direct me to materials to help me calculate power analysis for a data set that has a binary outcome and binary/categorical variables? I know how to do via SAS for continuous variables but don't know how to do it for binary and can't find helpful forum answers. How would I define observed difference or standard deviation for these type of questions?

 

A basic null hypothesis for this research question would be: There is no difference in smoking abstinence between gender or race. 

 

I.E.

My binary outcome is:

Smoking abstinence >=3months (0=no, 1=yes)

 

A binary/categorical variables would be:

gender (0=female, 1=male)

race (0=Black 1=AmericanNative 2=Hispanic 3=White)

 

An example of a continuous variable power analysis I can do:

proc power;
twosamplemeans test=diff
gmeans = 0 | 1.9
stddev = 4.8
npergroup = .
power = .8
alpha = 0.05;
run;

 

 

1 REPLY 1

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 715 views
  • 0 likes
  • 2 in conversation