Announcement

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

  • How graph with limits in the x and y axis ?

    I'm trying to graph only the closer section of the x and y axis near the cutoff of my RD Graph. For example, my analysis takes individuals from 18 to 65 years old, but I want my graph to only show the plots from 40 to 50 years to show a closer graph of the effect at the cutoff age of 45. I've tried with xscale(r(40 50)) but is not working. How should I do it?

  • #2
    You must use an if qualifier -- or else drop observations you don't want, or use a frame, either of which is often less satisfactory.

    Code:
    help axis scale options
    explains:

    [QUOTE]range() never narrows the scale of an axis or causes data to be omitted from the plot[/QUOTE]

    That help also gives the positive advice above.

    Comment

    Working...
    X