Announcement

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

  • ITSA Error

    Hello Statlist,

    I am trying to run ITSA on ttset panel data and would like to run a single group ITSA to look at the impact of a hurricane on new job creation (logged). When I run the following command:

    itsa lnannualjobs, single treatid(18) trperiod(2005 2015) lag (1) fig posttrend

    However, I get the error "Treatment periods not found in time variable: check trperiod()" when I run this command. In the dataset Orleans parish appears as the 18th county and the years recorded for new jobs goes from 2000-2015, but I only want to see the impact from 2005-2015. Everything seems correct, so I'm not quite sure why this is happening. Any suggestions? I've provided a screenshot of the dataset as it appears in STATA for review. I suspect it might be an issue with County1 being a string variable but it is encoded correctly, so I'm stumped.

    Click image for larger version

Name:	Screenshot 2020-05-19 16.53.48.png
Views:	1
Size:	828.8 KB
ID:	1554064


  • #2
    I figured this one out. Data format problem with my Year variable.

    Comment


    • #3
      Hi Davia,

      I am experiencing the same issue. It would be good to know how you changed the format. Thanks.

      Comment


      • #4
        If I remember correctly I tsset and then made sure that the year variable was set as %ty. Check: https://www.stata.com/manuals13/u24.pdf for more info.
        Last edited by Davia Downey; 04 Oct 2021, 07:52.

        Comment


        • #5
          Originally posted by Davia Downey View Post
          If I remember correctly I tsset and then made sure that the year variable was set as %ty. Check: https://www.stata.com/manuals13/u24.pdf for more info.
          I format year varibal as %ty, but it doesn't work

          Comment


          • #6
            Originally posted by Davia Downey View Post
            If I remember correctly I tsset and then made sure that the year variable was set as %ty. Check: https://www.stata.com/manuals13/u24.pdf for more info.
            I format year varibal as %ty, but it doesn't work.

            Comment

            Working...
            X