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 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 557 views
  • 0 likes
  • 2 in conversation