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 (December 1999, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 15 Dec 1999 15:57:59 GMT
Reply-To:     Brad Branford <macroman_1@HOTMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Brad Branford <macroman_1@HOTMAIL.COM>
Subject:      Manual Classification Table
Content-Type: text/plain; format=flowed

hi,

I'm using Proc Logistic and am trying to compare the classification done by SAS (using the ctable option) versus that done manually. Of course, given that SAS uses a jackknife approach when doing it's classification table, I don't expect to see exact results (or should I?). However, my problem at this time is the classification results that I'm getting using the code below -- it does not look right. Is there a way to mimic the SAS format for producing classification tables?

thanks in advance.

brad

*** SAS CODE ***

proc logistic data=mydata; model y = x1 x2 / ctable pProb=(0 to 1 by 0.1); output out=pred p=p;

data b; set pred; do cut=0 to 1 by .1; class=p>cut; output; end; run;

proc sort data=b; by cut;

proc freq; by cut; tables class*y; run;

______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com


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