Bookmark and Share

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]

Re: st: cmogram command for Regression Discontinuity Design


From   Nick Cox <[email protected]>
To   [email protected]
Subject   Re: st: cmogram command for Regression Discontinuity Design
Date   Mon, 5 Sep 2011 18:58:37 +0100

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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index