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 (September 2006, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 11 Sep 2006 12:41:57 +0530
Reply-To:     Madan Gopal Kundu <Madan.Kundu@RANBAXY.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Madan Gopal Kundu <Madan.Kundu@RANBAXY.COM>
Subject:      Re: McNemar test in SAS
Comments: To: David L Cassell <davidlcassell@MSN.COM>
Content-Type: text/plain; charset="US-ASCII"

Dear David,

Thanks a lot for your quick response. As usual it is a great reply and is of great help to me.

Best Regards, MADAN

-----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of David L Cassell Sent: 11 September 2006 12:34 To: SAS-L@LISTSERV.UGA.EDU Subject: Re: McNemar test in SAS

Madan.Kundu@RANBAXY.COM wrote: > >Hi, > >=0D > >I want to compute McNemar test with the following data: > >=0D > >data abc; > >input x $ y $ count; > >cards; > >Absent Absent 256 > >Absent Present 0 > >Present Absent 88 > >Present Present 0 > >; > >run; > >=0D > >proc freq data=3Dabc; > >table x*y/agree; > >weight count; > >run; > >=0D > >But log shows that: > >NOTE: No statistics are computed for x * y since y has less than 2 >nonmissing levels. > >=0D > >However, with the formula given in book it can be computed manually. So >I am wonder why SAS does not produce the McNemar test statistic. Is this >a software limitation???? ..... or anything else... > >=0D > >Kind Regards, > >MADAN

SAS is seeing a 1x2 vector without enough data to do the computations. Look at the output that oyu have, and you'll see that. If you have SAS 9, you can try the ZEROS option with the AGREE option and see how SAS likes that.

Or you can change the 0 values to something near zero, say 1E-8, and run the proc. It will compute the results, but of course you'll get an insanely small p-value because of your data. I can compute that without trying.

HTH, David -- David L. Cassell mathematical statistician Design Pathways 3115 NW Norwood Pl. Corvallis OR 97330

_________________________________________________________________ Search from any web page with powerful protection. Get the FREE Windows Live Toolbar Today! http://get.live.com/toolbar/overview

(i) The information contained in this e-mail message is intended only for the confidential use of the recipient(s) named above. This message is privileged and confidential. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this document in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail, and delete the original message.

(ii) The sender confirms that Ranbaxy shall not be responsible if this email message is used for any indecent, unsolicited or illegal purposes, which are in violation of any existing laws and the same shall solely be the responsibility of the sender and that Ranbaxy shall at all times be indemnified of any civil and/ or criminal liabilities or consequences there.


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