Programming the statistical procedures from SAS

Testing proportions from 2 different samples.

Reply
Regular Contributor
Posts: 204

Testing proportions from 2 different samples.

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

Super Contributor
Posts: 543

Re: Testing proportions from 2 different samples.

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

Ask a Question
Discussion stats
  • 1 reply
  • 159 views
  • 3 likes
  • 2 in conversation