Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
R: st: cmogram command for Regression Discontinuity Design
From
"Borgomeo, Letizia" <[email protected]>
To
"[email protected]" <[email protected]>
Subject
R: st: cmogram command for Regression Discontinuity Design
Date
Mon, 5 Sep 2011 18:09:18 +0000
I am sorry I should have read the Statalist FAQ more carefully, since I am an absolute beginner. The command I am talking about is indeed the one created by Christopher Robert and available from SCC.
The -cutpoint()- option seems to automatically include in the last bin on the left the value specified in the brackets. Then, in order to get the 0 values to the right, I may also artificially set the option -cutpoint(-0.5)- since my forcing variable is discrete. Thanks for your suggestions
Letizia
________________________________________
Da: [email protected] [[email protected]] per conto di Nick Cox [[email protected]]
Inviato: lunedì 5 settembre 2011 19.58
A: [email protected]
Oggetto: Re: st: cmogram command for Regression Discontinuity Design
Naturally I agree with Maarten's general stance.
I found that in -cmogram- you can't mix -start()- in -histopts()- and
-cutpoint()-:
... histopts(start(-1500) width(500)) cutpoint(0)
won't work.
I also just remembered this beast
SJ-6-1 gr26_1 . . . . . . . . . . . . . . . . . . Software update for binsm
(help binsm if installed) . . . . . . . . . . . . . . . . . N. J. Cox
Q1/06 SJ 6(1):151
rewritten to support modern Stata graphics
STB-37 gr26 . . . . . . . . . . . Bin smoothing and summary on scatter plots
(help binsm if installed) . . . . . . . . . . . . . . . . . N. J. Cox
5/97 pp.9--12; STB Reprints Vol 7, pp.59--63
alternative to graph, twoway bands(); produces a scatterplot
of yvar against xvar with one or more summaries of yvar for bins
of xvar
Nick
On Mon, Sep 5, 2011 at 4:32 PM, Maarten Buis <[email protected]> wrote:
> On Mon, Sep 5, 2011 at 5:04 PM, Borgomeo, Letizia wrote:
>> I am using the cmogram command for plotting the means-per-bin of an outcome variable against the assignment variable in a RDD. I am wondering if there is any way of setting the bins in order to have all the treated observations to the right and the untreated to the left of the cutoff. The forcing variable range is [-37;61] and I need the last bin in the LHS not to include the observations with a 0 value of the assignment variable, since they are exposed to treatment. Yet both with histopts(width()) and histopts(bin()) I do not manage to do it.
>
> -cmogram- is an user written program, so per the Statalist FAQ, you
> must say where you got it from. These are not rules to "trick" you,
> but to help you ask answerable questions. The background behind this
> rule is that there are typically multiple version of user written
> programs floating around in cyberspace, so if you do not tell us which
> exact version you are using, we are likely talking about different
> programs, and the resulting advise may very well be useless to you.
> You can find a link to the Statalist FAQ at the bottom of each post to
> Statalist (including this one).
>
> I will assume you are talking about -cmogram- which can be downloaded
> from SSC. If there is a one to one match between the cutpoint and
> whether or not someone is treated, than it seems to me that the option
> -cutpoint()- does what you want.
>
*
* 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/