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 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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