Date: Wed, 23 Dec 2009 14:53:53 -0500
Reply-To: Jeff <zhujp98@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Jeff <zhujp98@GMAIL.COM>
Subject: Re: how to test the signicanace
Content-Type: text/plain; charset=ISO-8859-1
Is it possible to do a binomial proposion test to G1 and G2 and how?
On Wed, Dec 23, 2009 at 1:03 PM, Ted Clay <firstname.lastname@example.org> wrote:
> * 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.
> Data ready;
> 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;
> Table group*admitted;
> Weight Num;
> You will get a Chi-square test by default.
> A 2-tailed Fisher's exact test would be my choice of test, which requires
> adding "/exact".
> You might also be interested in relative risk statistics and confidence
> intervals, which requires you to pay close attention to which is "row 1"
> "column 1".
> -----Original Message-----
> From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Jeff
> Sent: Wednesday, December 23, 2009 6:55 AM
> To: SAS-L@LISTSERV.UGA.EDU
> Subject: how to test the signicanace
> Two group of people. all people in G1 is in a health plan, and these in G2
> is not
> 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?