Thanks to:
Karen Grace-Martin, Howard Redway, Robin Prescott,
Paul R. Swank, Chris Bond, Kjell Pettersson, david.mcnulty,
Martin Holt, Jabu S Sithole, Ian Bradbury, Vicky Ryan
Fiona Young, John Hughes, Chintu, Lee Topping
I really appreciate, the responses were all very instructive.
Essentially, I have received 3 different answers:
To specify a factor in a logistic regression, you can use:
1. Proc Genmod instead of Proc Logistic.
2. Use a Class statement
3. Create dummy variables
All the best
arsad tanjung
-------
My original question:
>>Does anyone know how to specify a factor with more than 2 levels using
>>PROC LOGIST, logistic regression model in SAS?
>>e.g.
>>
>>PROC LOGISTIC DATA=sasdat DESCENDING;
>>MODEL Y=X1 X2 / LINK=LOGIT;
>>RUN;
>>
>>where X1=factor with 5 levels.
>>
>>It is not efficient, I guess, if I manipulate the factor into binary
>>codes.
>>(In Splus I can specify something like as.factor(X1) )
>>
>>Thank you
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
|