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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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