BookmarkSubscribeRSS Feed
Miracle
Barite | Level 11

Dear all,

I'd like to carry out a statistical significance test to see if there's a difference in proportions from 2 different samples.

Let say I have 3 different ethnic groups namely Caucasian, Asian and Others in sample A and sample B.

How do I test if proportion of Caucasian in sample A is statistically different from the proportion of Caucasian in sample B? Same to that of Asian and Others.

Your help is greatly appreciated Smiley Happy

1 REPLY 1
AncaTilea
Pyrite | Level 9

Could use PROC FREQ and the CHISQ?

Chi-sq will tell you that at least two of the proportions differ.

Anca.

PS:you may need to re-arrange your data something like:

data have;

input sample $ ethnicity $;

cards;

A white

A white

B black

B white

B asian

A asian

A asian

B black

;

proc freq data = have;

tables sample*ethnicity/chisq;

run;

Anca

Message was edited by: Anca Tilea And this link actually offers more details and probably what you need: http://support.sas.com/kb/22/565.html

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 1364 views
  • 3 likes
  • 2 in conversation