Announcement

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

  • allsynth: problem using allsynth by wiltshire and quarterly data

    Hello,

    For my dissertation I am using allsynth to do DiD with ticket prices. I have quarterly data, it is panel data. Using my quarterly data it has some trouble.
    I use the following code:
    gen Quarterly = yq(YEAR, QUARTER)
    format Quarterly %tq

    this is where i encournter problems. I have formatted the data as quarters but i cannot run allsynth like this:


    allsynth Ticket Ticket(2018q3) Ticket(2012q1) Ticket(2015q1), trperiod(2018q3) trunit(6) figure gapfigure(placebos) pval keep(refugeeresults) plac rep
    This also does not work:
    allsynth Ticket Ticket('=tq(2018q3)') Ticket('=tq(2012q1)') Ticket('=tq(2015q1)'), trunit(11) trperiod('=tq(2018q3)') figure gapfigure(placebos) pval keep(refugeeresults) plac rep

    It gives me these errors: "trperiod() invalid -- invalid number" or "variable trperiod not found".

    Any idea how to fix this so allsynth can run and have proper labels?

    Would appreciate any help!


  • #2
    I suspect your left quote is wrong. Try this
    Code:
     
     `=tq(2015q1)’

    Comment

    Working...
    X