Statistical Procedures

Programming the statistical procedures from SAS
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-white.png

Join us for our biggest event of the year!

Four days of inspiring keynotes, product reveals, hands-on learning opportunities, deep-dive demos, and peer-led breakouts. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

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