New SAS User

Completely new to SAS or trying something new with SAS? Post here for help getting started.
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-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!

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