BookmarkSubscribeRSS Feed
froji
Calcite | Level 5

Hi,

My data has a categorical independent variable (3 groups) and a dicohotomous (yes/no) dependent variable. I was planning to use a Chi-squared test to see if there is a difference between the groups. However I first need to calculate the sample size, since I didn't find a way to do this in SPSS I am trying to do this in SAS studio.

Is this the correct test to use for my data types or are there better tests to do it? How do I calculate the sample size if the alfa is 0.05, the power is 0.80 and I have a 3X2 tabel as described above?

1 REPLY 1
StatDave
SAS Super FREQ

You can do this either with the POWERRxC macro or with PROC POWER. Both are illustrated for a 4x2 table in Example 3 in the Results tab in the POWERRxC macro documentation.

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!

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
  • 680 views
  • 1 like
  • 2 in conversation