Date: Wed, 15 Jul 2009 09:49:38 -0500
Reply-To: OR Stats <stats112@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: OR Stats <stats112@GMAIL.COM>
Subject: PROC LOGISTIC class statement
Content-Type: text/plain; charset=ISO-8859-1
HELLO:
I have a dataset for which I would like to run my logistic model for three
segments of the data. Using PROC LOGISTIC I used the following code:
*
PROC* *LOGISTIC* DATA=my3data DESCENDING
OUTEST=BETAS;
CLASS segments;
MODEL y= x1 x2 x3/ LACKFIT RSQUARE CTABLE;
output out=outl p=pred;
*
RUN*;
However, when I go to the output data table BETAS, I do not see a set of
parameters for each one of these segments. Instead, I only see the
estimates for one model... Why is this? And how do I modify the code so
that this model runs three times on one dataset... other than splitting the
dataset out into three datasets and running PROC LOGISTIC 3x?
Thanks!!