I am running a discrete time logistic regression analysis, and I´d like to use probabilities and odds to express my results. But probabilities and odds appear not to agree. I am going to exemplify my type of problem with the following sintax:
cls
clear all
sysuse auto
logistic foreign c.mpg c.price
margins
tab1 foreign
display 22/74 //.2972973 Ok. the same result as margins
*Lets go for the odds now. I expect 22/52 = 0.4230
margins, expression(exp(predict(xb)))
// but the result is 1.066307, not the expected.
Where I am going wrong? How can I get the odds in accord with the probabilities?
I am neophyte, so please excuse me if I am asking a very basic question. I have read the documentation but I continue being lost.
Thanks in advance.
Florentino
cls
clear all
sysuse auto
logistic foreign c.mpg c.price
margins
tab1 foreign
display 22/74 //.2972973 Ok. the same result as margins
*Lets go for the odds now. I expect 22/52 = 0.4230
margins, expression(exp(predict(xb)))
// but the result is 1.066307, not the expected.
Where I am going wrong? How can I get the odds in accord with the probabilities?
I am neophyte, so please excuse me if I am asking a very basic question. I have read the documentation but I continue being lost.
Thanks in advance.
Florentino
Comment