Date: Wed, 23 Dec 2009 10:03:56 -0800
Reply-To: Ted Clay <tclay@ASHLANDHOME.NET>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Ted Clay <tclay@ASHLANDHOME.NET>
Subject: Re: how to test the signicanace
Content-Type: text/plain; charset="us-ascii"
* I think this might help. One way to do this is to create a data set with
the 4 cells of a 2-by-2 table, and let PROC FREQ do the test of
The key is the "WEIGHT" statement in PROC FREQ.
Group=1; admitted='Yes'; Num=Y1; output;
Group=1; admitted='No '; Num=X1-Y1; output;
Group=2; admitted='Yes'; Num=Y2; output;
Group=2; admitted='No '; Num=X2-Y2; output;
Proc freq data=ready;
You will get a Chi-square test by default.
A 2-tailed Fisher's exact test would be my choice of test, which requires
You might also be interested in relative risk statistics and confidence
intervals, which requires you to pay close attention to which is "row 1" and
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Jeff
Sent: Wednesday, December 23, 2009 6:55 AM
Subject: how to test the signicanace
Two group of people. all people in G1 is in a health plan, and these in G2
G1 have x1 member, and y1 hospital admits. hospital admit rate is
G2 has x2 member and y1 hospital admits. hospital admit rate is h21=y2/x2
I want to test if there is significant difference between G1 and G2.
What kind test should I use?