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

st: RE: graph for propensity scores

From   "David Harrison" <>
To   <>
Subject   st: RE: graph for propensity scores
Date   Tue, 12 Apr 2005 14:46:50 +0100

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


-----Original Message-----
From: Hans J. Baumgartner []
Sent: 12 April 2005 14:19
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 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

*   For searches and help try:

*   For searches and help try:

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