Announcement

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

  • How to change label names of coefplot?

    I want to visualize my regression outcome using coefplot with the following code:
    Code:
     
     reghdfe pm25 gap_*, a(fips year) coefplot, vertical drop(_cons) yline(0) xlabel(, angle(vertical))
    Now the labels of my x-axis are all called "gap_1991", "gap_1992" and so on. Is there a way to change the naming scheme to only keep the years? I.e. "gap_1991" to "1991" and "gap_1992" to "1992"...

  • #2
    Cross-posted to Reddit. Please note our request to tell us where you have asked for help. Some may view it as disrespectful to those who at take time to help you, while you may have already received help elsewhere.

    Comment


    • #3
      coefplot is from SSC (FAQ Advice #12). See https://www.statalist.org/forums/for...onth-year-date

      Comment


      • #4
        Thanks a lot Andrew, that's exactly what I was looking for!

        Comment


        • #5
          Sorry Leonardo, I deleted my reddit post!

          Comment

          Working...
          X