What you have to know is how you want to code your categorical variable ...
if you have a linear trend between the different categories of these
variables (you have the same risk from 1 to 2, 2 to 3 , ...), you can let
this code, and the syntax is
logistic prop1 conc inc
But if it's not true, you have to recode them as dummy variables, with the
syntax xi
xi:logistic prop1 i.conc i.inc
Hope this helps
Alvine
> -----Message d'origine-----
> De: [email protected] [mailto:[email protected]]
> Date: jeudi 3 octobre 2002 11:37
> �: [email protected]
> Objet: st: logistic regression
>
>
> Hello statalisters,
>
> Could anybody tell me how I would treat the following problem,
>
> I am using logistic regression to calculate the relationship between a
> dependent variable (prop1) and two catagorical variables
> (conc and inc).
> There are no other variables. Conc takes the values
> 1,2,...,8 and inc takes
> the values 1,2,3. Any advice on the syntax would be most
> appreciated, or
> pointers towards literature.
>
> Thank you in advance,
>
> Christopher D Fergusson
> *
> * For searches and help try:
> * http://www.stata.com/support/faqs/res/findit.html
> * http://www.stata.com/support/statalist/faq
> * http://www.ats.ucla.edu/stat/stata/
>
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/