Announcement

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

  • synthetic control error

    Hello,

    I am new at the synth command. I am using Stata 15. I want to estimate a treatment effect using the synthetic control method with the code:

    Code:
    synth m regulated, trperiod(651) trunit(1)
    and I received the outpud:

    Code:
    -------------------------------------------------------------------------------------------------------------------------------
    Synthetic Control Method for Comparative Case Studies
    -------------------------------------------------------------------------------------------------------------------------------
    
    First Step: Data Setup
    -------------------------------------------------------------------------------------------------------------------------------
    treated unit: for 1 of out 1 units outcome variable m is missing in 684 results period - check resultsperiod()
    invalid syntax
    r(198);
    could someone help me to understand what is wrong with the command and how to solve it?

    Thanks.

  • #2
    What is troubling me the most is that there are no missing values in neither the outcome variable nor the depvar.

    Comment


    • #3
      You'll increase your chances of a useful answer by following the FAQ on asking questions - provide Stata code in code delimiters, readable Stata output, and sample data using dataex. I assume your variable is lowercase m not uppercase M? I'd try running some of the examples in the documentation to make sure things are operating correctly. Also, examine the data structure in the examples to see if you can see a way it differs from your data.

      I don't use this procedure, but I wonder if you have trperiod specified with the right value - in the examples, it is a year. Otherwise, you may need to contact the authors.

      Comment

      Working...
      X