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

Antwort: st: RE: graph for propensity scores


From   "Hans J. Baumgartner" <[email protected]>
To   [email protected]
Subject   Antwort: st: RE: graph for propensity scores
Date   Wed, 13 Apr 2005 10:45:32 +0200

Thank David,

your routine does exactly the desired trick.

Cheers
Hans





++++++++++++++++++++++++++++++++
Hans J. Baumgartner
Dept. Public Economics
DIW Berlin
German Institut for Economic Research
phone: +49/30/89789-307
fax :      +49/30/89789-114
URL: www.diw.de
          www.hansbaumgartner.de
++++++++++++++++++++++++++++++++

[email protected] wrote on 12/04/2005 15:46:50:

> You could do that something like, e.g.
> 
> sysuse auto
> twoway__histogram_gen length if !foreign, start(140) w(10) freq gen(h0 
x0)
> twoway__histogram_gen length if foreign, start(140) w(10) freq gen(h1 
x1)
> replace h1=-h1
> gen zero=0
> twoway (rbar h0 zero x0, barw(10)) (rbar h1 zero x1, barw(10)), ///
>     yla(-10 "10" -5 "5" 0(5)15) yti(Frequency) ///
>     legend(label(1 "Domestic") label(2 "Foreign"))
> 
> Note the very handy command -twoway__histogram_gen- (two underscores
> in the first gap!) that is not in the Stata manuals but does have a help 
file.
> 
> Hope this helps
> 
> David
> 
> -----Original Message-----
> From: Hans J. Baumgartner [mailto:[email protected]]
> Sent: 12 April 2005 14:19
> To: [email protected]
> Subject: st: graph for propensity scores
> 
> 
> Dear statalist,
> 
> I am estimating treatment effects using propensity scores.
> 
> To discuss the common support I?d like to graph the scores for the 
> treated and the controls.
> 
> However, my graph knowledge is very limited and is only sufficient to 
> generate a graph, where the scores for the treated and the controls are 
> displayed next to each other. That is I am using the by(.) option and 
> the command historgram.
> 
> I?ve seen the scores are displayed upwards for the treated and mirrored 
> downwards for the controls in one single graph.
> 
> Has anybody an idea how to do this?
> 
> Thanks in advance
> Hans
> 
> 
> 
> 
> 
> -- 
> Hans J. Baumgartner DIW Berlin
> German Institute for Economic Research
> Dept. Public Economics
> K�nigin-Luise-Str. 5; 14195 Berlin; Germany
> Tel.: +49/30/89789-307
> Fax.: +49/30/89789-114
> http://www.diw.de
> http://www.hansbaumgartner.de
> 
> 
> *
> *   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/
> 


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