Announcement

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

  • coefplot only shows several variable names in horizontal axis

    Hi,

    I am using coefplot to draw the graph for the parallel trend test. I have 30 days before the event and 30 days after the event. I want to keep the coefficients of every day before and after the event day in the graph. However, in the horizontal axis, I only want to show a few variable names. If not, variable names cluster together in the horizontal axis and are not readable. I am wondering if there is any way I can do that.

    Thanks.

  • #2
    You need to present a data example that reproduces your problem. See FAQ Advice #12 for more details. Note that coefplot is from SSC.

    Comment


    • #3
      Originally posted by Andrew Musau View Post
      You need to present a data example that reproduces your problem. See FAQ Advice #12 for more details. Note that coefplot is from SSC.
      Thanks! For example, I am regressing

      reg y day*


      day* is day_30 (-30) to day30 (+30), 60 variables in total. I am using coefplot:


      Code:
      coefplot, keep(day* ) yline(0)  vertical  ciopts(recast(rcap)) coeflabels addplot(line @b @at) scheme(s1mono)
      There are 60 variable names in the x-axis and the axis is pretty messy. Can I keep all 60 variables in the graph but only show day_30 day_15 day_1 day1 day15 day30, the 6 variable names on the x-axis?

      Thanks

      Comment


      • #4
        Sorry, #3 does not constitute a reproducible example. Re-read the FAQ Advice referenced in #2. Consider that you need not include all 60 variables in the example. Having, e.g., 7 variables and showing the names of 4 variables in the axis would illustrate a technique that can be generalized to your actual problem.

        Comment

        Working...
        X