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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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