Date: Tue, 29 Nov 2005 17:52:17 -0800
Reply-To: David L Cassell <davidlcassell@MSN.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: David L Cassell <davidlcassell@MSN.COM>
Subject: Re: Fisher's Test
In-Reply-To: <200511292245.jATMaPQp004725@mailgw.cc.uga.edu>
Content-Type: text/plain; format=flowed
> I need to run the Fisher's Test on a dataset. In addition
>to the count, I also need the p-value. My code looks like this:
>
>proc freq data=3Dindata noprint;
> tables trtgrpi*racen/out=rac fisher;
>run;
I assume you mean Fisher's exact test. In that case, you're on the right
track.
I don't think this will give you your p-values, though. You want to use ODS
to
get that. You want somethign like this UNTESTED code:
ods output FishersExact=YourTable;
proc freq data=3Dindata noprint;
tables trtgrpi*racen / fisher;
run;
ods output close;
HTH,
David
--
David L. Cassell
mathematical statistician
Design Pathways
3115 NW Norwood Pl.
Corvallis OR 97330
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/