Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: linear probability model (LPM)


From   Richard Williams <[email protected]>
To   [email protected], [email protected]
Subject   Re: st: linear probability model (LPM)
Date   Mon, 14 Jan 2008 08:30:31 -0500

At 04:01 AM 1/14/2008, Maarten buis wrote:
Now I can't resist to repeat my favourite feature request: I would like
Stata to output the baseline odds (-exp(_cons)-) when it presents the
odds ratios. It is not only nice to know that the odds of success is
e.g. twice as large for men than for women, but it is also informative
to know whether the odds of success for women is e.g. 0.01 success for
every failure or 1 success for every failure.
I agree with Maarten. I believe there is a Stata tip or FAQ that gives a workaround. Create a variable equal to 1, and include it in your model along with the -nocons- option, e.g.

. sysuse auto
(1978 Automobile Data)

. gen one = 1

. logit foreign price mpg one, or nocons nolog

Logistic regression Number of obs = 74
LR chi2(3) = .
Log likelihood = -36.462189 Prob > chi2 = .

------------------------------------------------------------------------------
foreign | Odds Ratio Std. Err. z P>|z| [95% Conf. Interval]
-------------+----------------------------------------------------------------
price | 1.000266 .0001166 2.28 0.022 1.000038 1.000495
mpg | 1.263436 .0848332 3.48 0.000 1.107642 1.441143
one | .0004769 .0009747 -3.74 0.000 8.69e-06 .0261845
------------------------------------------------------------------------------



-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
HOME: (574)289-5227
EMAIL: [email protected]
WWW: http://www.nd.edu/~rwilliam

*
* 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/




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