Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: AW: Probabilities after logit?


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: AW: Probabilities after logit?
Date   Mon, 1 Jun 2009 14:59:25 +0200

<> 

If you want to apply your formula to the estimates, use -nlcom-



*************
webuse lbw2, clear

logit low age lwt /* 
 */ race2 race3 smoke/* 
 */  ptl ht ui 
 
nlcom exp(_b[age])/(1+exp(_b[age]))

//for all covariates
capt ssc inst indeplist

qui indeplist

foreach var in `r(X)'{
	nlcom exp(_b[`var'])/(1+exp(_b[`var']))
}
*************



HTH
Martin


-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Kanter, Rebecca
Gesendet: Montag, 1. Juni 2009 14:50
An: [email protected]
Betreff: st: Probabilities after logit?

Hi,

I would like to get the logit output in stata in a form of "probabilities"
(via transforming the log odds through the formula e^x / (1 + e^x)). Does
anyone know if there is a command(s) to do this? (I know you can get the
"predicted" line in the probability format, but am looking here, to be able
to see the coefficients in the form of probabilities).

Thanks,
Rebecca

___________________________________________
Rebecca M. Kanter
PhD Candidate
Johns Hopkins Bloomberg School of Public Health
Department of International Health
Center for Human Nutrition

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index