Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Regression Discontinuity Graph

    Hi,

    I am working in stata 15 and am trying to use a twoway lpoly command to come up with a regression discontinuity graph. My running variable is age and the outcome variable is Trust levels which is a categorical variable. I set a cutoff of 33 years of age. When I ran both the lpoly and rdplot commands the output I get from the plotted graph seems to be having problems with scale especially in the x axis of my graph. May you please help me on how to fix this and get a better graph.

    Here are the two codes I am using for twoway lpoly graph and rdplots respectively:

    twoway lpoly Trust1 agefromthresh if agefromthres<0 || lpoly Trust1 agefromthresh if agefromthres>=0
    rdplot Trust1 agefromthresh


    I have attached the two graphs which I get from running the commands above.
    Attached Files
Working...
X