LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (November 2005, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: nsridhar@MEDAREX.COM
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/


Back to: Top of message | Previous page | Main SAS-L page