Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: graphs linear regressions with dummies


From   Ralph.Heinrich@unece.org
To   statalist@hsphsun2.harvard.edu
Subject   st: graphs linear regressions with dummies
Date   Tue, 9 Nov 2004 13:45:54 +0100

Hi,

I am trying to graph a two-way plot of a dependent and an explanatory
variable together with a fitted line, where the line is fitted with a
linear regression containing two dummy variables. When I do, the fitted
line doesn't come out linear, but incorporates the fitted values of the
observations where the dummies are 1. The only way I found of how to make
the fitted line look linear is to exclude from the graph the two
observations where the dummies are 1. Anyone know of a more
elegant/efficient way ? Viz. what I find puzzling is that the two dummies
are screwing up the linear graph of the fitted line, but the individual
fixed effects which I also have in the regression are not ?

Thanks
Ralph


Ralph Heinrich
Economic Affairs Officer
Economic Analysis Division
UN Economic Commission for Europe

room 441
Palais des Nations
1211 Geneva 10
phone: 0041 22 917 1269
http://www.unece.org/ead/ead_h.htm



*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index