Announcement

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

  • itsa error: treatment periods not found in time variable: check trperiod()

    Hello,
    After having the error in my data, I'm following the stata example: https://sites.google.com/site/metrics4real/home/test

    sysuse cigsales_single, clear
    tsset year

    * Here we specify two treatment periods, starting in 1982 and 1989.
    itsa cigsale, single treat(3) trperiod(1982 1989) lag(1) fig

    I got an error message when I have two numbers in trperiod( ): Treatment periods not found in time variable: check trperiod()
    The year variable has a numeric format. What should I do to fix the error? Thank you.

    Jungwon


  • #2
    1982;1989

    EDIT: Why do an in time placebo in 1982?

    Comment


    • #3
      Hello, was there any resolution to this issue? I am having the same error when I try to run an xtitsa model with two intervention points. The exact same code with only one intervention time point runs. trperiod(18 48) - there should be no comma in between, though I did try that as well. I have updated to the latest version of the xtitsa package.

      Comment


      • #4
        here is what I find in the help file:
        Dates should be specified as human readible dates using the respective pseudofunction (see datetime), such
        as trperiod(2020) for a four-digit year, or trperiod(2019m11) for monthly data. Multiple periods may be specified, separated
        by a semicolon, as follows trperiod(2019m6; 2019m11)
        so, first, you don't appear to be using "human readible [sic] dates" and second, you are not using a semicolon; note that this quote comes from version 2.6.0 of the user-written command (use -search- to find and download)

        Comment

        Working...
        X