Announcement

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

  • Synthetic Control Without Predictor Variables

    Hi,

    I am trying to run a synthetic control model using the "synth" command with no predictor variables. I am only trying to match on the dependent variable as in this paper.

    The code I'm using is: synth y, trunit(n) trperiod(xxxx), where y is the name of the dependent variable, n is the number of the treated unit and xxxx is the year of treatment.

    However, I get the following error: "not a single variable specified. please supply at least a response variable"

    Could someone please help?

    Thanks

  • #2
    Try something like this, where you specify the annual values to match on directly:

    Code:
    use "smoking.dta"
    xtset state year 
    synth cigsale cigsale(1984) cigsale(1985) cigsale(1986) cigsale(1987) cigsale(1988), trunit(3) trperiod(1989)

    Comment


    • #3
      Hi, I have the same problem and have tried specifying annual values but it says expression too long? What is the solution? Thanks!

      Comment


      • #4
        Hey I'm the resident expert on SCM. Show me the code you used, tell me how many donors you have.

        Comment


        • #5
          Jared Greathouse
          I'm facing an issue similar to the one discussed in this post.
          I am trying to use one dependent variable (price) with the "synth2" command. My dataset is monthly and spans from 200501 to 202405. My treatment variable is #1, and I have 35 control variables to use as a donor pool.
          When I run the following code on a different dataset, it seems to work fine. However, with this particular dataset, I encounter a conformability error. While I understand what a conformability error means in general, I'm not sure where the problem lies in this case.
          I'd appreciate any insights or guidance you can provide. Thanks in advance for your help!

          (case1) Invalid syntax:
          synth2 price, trunit(1) trperiod(202307)
          (case2) Conformability error:
          synth2 price item, trunit(1) trperiod(202307)
          Code:
          * Example generated by -dataex-. For more info, type help dataex
          clear
          input long(ym item) double price
          200501  3  96.11829944547135
          200501 19 115.39736405966379
          200501 18  141.4827750436577
          200501 33   95.1219512195122
          200501 17 102.80437756497949
          200501 25  94.76013479310993
          200501 20  87.56832515767344
          200501 16  78.91934529678562
          200501 10  86.16975441619992
          200501 11  99.34235328613916
          200501 23  35.49595740485111
          200501  2  87.25463865762096
          200501 30  72.81448614941837
          200501 24  97.34620024125452
          200501  6  91.34582623509367
          200501 12 101.98300283286122
          200501  9  83.01325964284885
          200501  1  97.73298846980433
          200501 27  81.56965766357439
          200501  5  98.46728971962617
          200501 15  105.0363686585029
          200501 26  95.22960320998662
          200501 31  92.74965800273598
          200501  4   102.236709782571
          200501 22  91.48468794417884
          200501 29  74.99520981030848
          200501 35  77.30128713475264
          200501 13  98.95672920507536
          200501  8  98.41376982787715
          200501 21  96.52840396753832
          200501  7 114.00522523949014
          200501 34    93.755990919028
          200501 14 127.60602374260665
          200501 28 197.55955839628123
          200501 32 121.00527458889232
          200502 13 100.67454722915086
          200502 24   78.1664656212304
          200502  9  95.88742075563708
          200502 28 197.55955839628123
          200502 18 115.63740276234323
          200502 16  78.91934529678562
          200502  6  94.54855195911412
          200502 31 105.06155950752394
          200502 21  98.70754433423504
          200502 22  62.02351725029074
          200502 23  85.42693748767502
          200502  5 102.72897196261684
          200502 10  99.09521757862991
          200502  8  98.00877489031387
          200502 25  99.79318224549122
          200502 14  80.54029111959395
          200502 15  105.0363686585029
          200502  7 114.00522523949014
          200502  2  83.47131563890284
          200502 11  99.52666191932309
          200502 35  72.17714878301713
          200502 27  82.06222806009357
          200502 12 101.98300283286122
          200502 33  94.57317073170732
          200502  4 102.24364531678052
          200502 32 105.64691281414831
          200502  1  99.38252616602999
          200502  3 102.77264325323475
          200502 20  91.32445690259286
          200502 34  96.19776339022955
          200502 29  80.45602605863192
          200502 17 101.77838577291382
          200502 19 115.39736405966379
          200502 30  51.08526202182515
          200502 26 103.25456977262594
          200503  1   99.9921383456818
          200503  4  100.4473419565142
          200503  9  99.06416180944197
          200503 21  98.70754433423504
          200503 26 105.12706197057513
          200503  5 102.50467289719627
          200503  8  97.19878501518731
          200503 13 101.71564906192387
          200503 20 106.06867554309743
          200503  2     77.30590034914
          200503 10  94.65747522619561
          200503 15  105.0363686585029
          200503 22 59.232458974027644
          200503 18 116.65343705350055
          200503 33  96.76829268292684
          200503 30  55.40232641803573
          200503 29  83.34930063230503
          200503 19 115.39736405966379
          200503 25  98.92541544335651
          200503 31 111.62790697674419
          200503 24  87.57539203860073
          200503 32 103.04064536146447
          200503 17 101.98358413132695
          200503 28 197.55955839628123
          200503  3 109.42698706099814
          200503 12 101.98300283286122
          200503 11 101.18543961797847
          200503  6  99.99999999999999
          200503 27  80.28897463262456
          200503 14  62.92210243718276
          200503 34 100.35483057260572
          200503  7 114.00522523949014
          200503 35  83.81626303910204
          200503 16  78.91934529678562
          200503 23  79.74758430289884
          200504 18  83.69582473408475
          200504 10  87.03145196036192
          200504 16  78.91934529678562
          200504 30  76.05228444657632
          200504  2  75.40022653230422
          200504 14  54.51570955157514
          200504  4  101.7442868536949
          200504 24  86.48974668275031
          200504 20 109.93693062368605
          200504  5  99.36448598130842
          200504 27   80.0919464740169
          200504  7  64.93547620932625
          200504  6  99.99999999999999
          200504 23    74.304870834155
          200504 22  93.03527587543611
          200504 28 101.49138098005035
          200504  8 100.03374957813027
          200504  3 108.68761552680222
          200504 32 104.52994104871239
          200504  1 100.48253758269769
          200504 33   95.1219512195122
          200504 11 102.45884471997655
          200504 34 104.26973850163964
          200504 31 105.06155950752394
          200504 29  85.61027016669858
          200504 35 108.55853108033917
          200504 17   99.1108071135431
          200504 15  105.0363686585029
          200504 25 101.23367513703482
          200504  9 102.85395815433202
          200504 21  98.52720168319807
          200504 13 102.97798503416115
          200504 26  97.36959429335712
          200504 12 101.50708215297453
          200504 19  63.92549917133611
          200505 15  84.15431359911611
          200505 32  94.47719515978902
          200505 11  101.5373015540569
          200505 31   90.2872777017784
          200505 28  58.02827813286848
          200505 20 109.93693062368605
          200505  6  99.99999999999999
          200505  4 101.32815480112356
          200505  2  94.10665701374374
          200505 19  57.86441480546129
          200505 16 124.82745020705974
          200505 29  89.13584977965128
          200505 10  88.75484704868593
          200505 35  98.09064844750807
          200505  9 105.97496690894737
          200505 12  106.1303116147309
          200505 18  74.67852040006349
          200505  8 102.86871414107324
          200505 25 100.66094904762592
          200505 14  81.54704475858885
          200505 26  96.56709763709318
          200505  7    78.188583643417
          200505 21   97.2497745716862
          200505 23 150.02957996450405
          200505 13 101.10400173516972
          200505  1  99.12486721211037
          200505  3  104.2513863216266
          200505 27   80.0919464740169
          200505 22  96.13645173795065
          200505 30  97.78150857416955
          200505 34 105.98503321281427
          200505  5  96.00000000000001
          200505 17 103.00957592339262
          200505 33   95.1219512195122
          200505 24  89.02291917973463
          200506 34 103.82577987051206
          200506  4  97.31248049381004
          200506 29 100.05748227629813
          200506 13   99.2950873007266
          200506  5  90.16822429906543
          200506 30  97.78150857416955
          200506 17  98.70041039671682
          200506  6  99.99999999999999
          200506  2 104.32162916428265
          200506  1  99.73667223259697
          200506 10   90.8229211546747
          200506 15   85.9957646625541
          200506 25 100.66094904762592
          200506 32  94.47719515978902
          200506 31  82.07934336525308
          200506 12 110.27762039660058
          200506 18  76.20257183679948
          200506  3  96.11829944547135
          200506  7  79.66115113609375
          200506 14 125.18981500901883
          200506 33   95.1219512195122
          200506 11 101.16868428768902
          200506 23  155.4722934332479
          200506 28  62.67673833042804
          200506 26  98.70708872046366
          end
          label values item item
          label def item 1 " Paddy", modify
          label def item 2 "Banana, Cavendish", modify
          label def item 3 "Cassava", modify
          label def item 4 "Cattle", modify
          label def item 5 "Coconut", modify
          label def item 6 "Coffee", modify
          label def item 7 "Durain", modify
          label def item 8 "Egg, chicken", modify
          label def item 9 "Fowl", modify
          label def item 10 "Garlic", modify
          label def item 11 "Glutinous paddy", modify
          label def item 12 "Groundnut", modify
          label def item 13 "Hommali paddy", modify
          label def item 14 "Longan", modify
          label def item 15 "Longkong", modify
          label def item 16 "Lychee", modify
          label def item 17 "Maize", modify
          label def item 18 "Mango, Khiaw Sawei", modify
          label def item 19 "Mangosteen", modify
          label def item 20 "Mung bean", modify
          label def item 21 "Non-Glutinous paddy", modify
          label def item 22 "Onion", modify
          label def item 23 "Orchids", modify
          label def item 24 "Palm kernel (weight over 15 kg.)", modify
          label def item 25 "Peppercorn", modify
          label def item 26 "Pineapple", modify
          label def item 27 "Potato", modify
          label def item 28 "Rambutan", modify
          label def item 29 "Rubber, un-smoked sheet 3", modify
          label def item 30 "Shallot", modify
          label def item 31 "Shrimp, Vannamei", modify
          label def item 32 "Soybean", modify
          label def item 33 "Sugarcane", modify
          label def item 34 "Swine (weight over 100 kg.)", modify
          label def item 35 "Tangerine", modify

          Comment


          • #6
            Hey what's up Jane Quan , the example you've given me is an unbalanced panel. For SCM to work, we need a balanced panel dataset where we observe all units across all time points. For example, when I do

            Code:
            * Example generated by -dataex-. For more info, type help dataex
            clear
            input long(ym item) double price
            200501  3  96.11829944547135
            200501 19 115.39736405966379
            200501 18  141.4827750436577
            200501 33   95.1219512195122
            200501 17 102.80437756497949
            200501 25  94.76013479310993
            200501 20  87.56832515767344
            200501 16  78.91934529678562
            200501 10  86.16975441619992
            200501 11  99.34235328613916
            200501 23  35.49595740485111
            200501  2  87.25463865762096
            200501 30  72.81448614941837
            200501 24  97.34620024125452
            200501  6  91.34582623509367
            200501 12 101.98300283286122
            200501  9  83.01325964284885
            200501  1  97.73298846980433
            200501 27  81.56965766357439
            200501  5  98.46728971962617
            200501 15  105.0363686585029
            200501 26  95.22960320998662
            200501 31  92.74965800273598
            200501  4   102.236709782571
            200501 22  91.48468794417884
            200501 29  74.99520981030848
            200501 35  77.30128713475264
            200501 13  98.95672920507536
            200501  8  98.41376982787715
            200501 21  96.52840396753832
            200501  7 114.00522523949014
            200501 34    93.755990919028
            200501 14 127.60602374260665
            200501 28 197.55955839628123
            200501 32 121.00527458889232
            200502 13 100.67454722915086
            200502 24   78.1664656212304
            200502  9  95.88742075563708
            200502 28 197.55955839628123
            200502 18 115.63740276234323
            200502 16  78.91934529678562
            200502  6  94.54855195911412
            200502 31 105.06155950752394
            200502 21  98.70754433423504
            200502 22  62.02351725029074
            200502 23  85.42693748767502
            200502  5 102.72897196261684
            200502 10  99.09521757862991
            200502  8  98.00877489031387
            200502 25  99.79318224549122
            200502 14  80.54029111959395
            200502 15  105.0363686585029
            200502  7 114.00522523949014
            200502  2  83.47131563890284
            200502 11  99.52666191932309
            200502 35  72.17714878301713
            200502 27  82.06222806009357
            200502 12 101.98300283286122
            200502 33  94.57317073170732
            200502  4 102.24364531678052
            200502 32 105.64691281414831
            200502  1  99.38252616602999
            200502  3 102.77264325323475
            200502 20  91.32445690259286
            200502 34  96.19776339022955
            200502 29  80.45602605863192
            200502 17 101.77838577291382
            200502 19 115.39736405966379
            200502 30  51.08526202182515
            200502 26 103.25456977262594
            200503  1   99.9921383456818
            200503  4  100.4473419565142
            200503  9  99.06416180944197
            200503 21  98.70754433423504
            200503 26 105.12706197057513
            200503  5 102.50467289719627
            200503  8  97.19878501518731
            200503 13 101.71564906192387
            200503 20 106.06867554309743
            200503  2     77.30590034914
            200503 10  94.65747522619561
            200503 15  105.0363686585029
            200503 22 59.232458974027644
            200503 18 116.65343705350055
            200503 33  96.76829268292684
            200503 30  55.40232641803573
            200503 29  83.34930063230503
            200503 19 115.39736405966379
            200503 25  98.92541544335651
            200503 31 111.62790697674419
            200503 24  87.57539203860073
            200503 32 103.04064536146447
            200503 17 101.98358413132695
            200503 28 197.55955839628123
            200503  3 109.42698706099814
            200503 12 101.98300283286122
            200503 11 101.18543961797847
            200503  6  99.99999999999999
            200503 27  80.28897463262456
            200503 14  62.92210243718276
            200503 34 100.35483057260572
            200503  7 114.00522523949014
            200503 35  83.81626303910204
            200503 16  78.91934529678562
            200503 23  79.74758430289884
            200504 18  83.69582473408475
            200504 10  87.03145196036192
            200504 16  78.91934529678562
            200504 30  76.05228444657632
            200504  2  75.40022653230422
            200504 14  54.51570955157514
            200504  4  101.7442868536949
            200504 24  86.48974668275031
            200504 20 109.93693062368605
            200504  5  99.36448598130842
            200504 27   80.0919464740169
            200504  7  64.93547620932625
            200504  6  99.99999999999999
            200504 23    74.304870834155
            200504 22  93.03527587543611
            200504 28 101.49138098005035
            200504  8 100.03374957813027
            200504  3 108.68761552680222
            200504 32 104.52994104871239
            200504  1 100.48253758269769
            200504 33   95.1219512195122
            200504 11 102.45884471997655
            200504 34 104.26973850163964
            200504 31 105.06155950752394
            200504 29  85.61027016669858
            200504 35 108.55853108033917
            200504 17   99.1108071135431
            200504 15  105.0363686585029
            200504 25 101.23367513703482
            200504  9 102.85395815433202
            200504 21  98.52720168319807
            200504 13 102.97798503416115
            200504 26  97.36959429335712
            200504 12 101.50708215297453
            200504 19  63.92549917133611
            200505 15  84.15431359911611
            200505 32  94.47719515978902
            200505 11  101.5373015540569
            200505 31   90.2872777017784
            200505 28  58.02827813286848
            200505 20 109.93693062368605
            200505  6  99.99999999999999
            200505  4 101.32815480112356
            200505  2  94.10665701374374
            200505 19  57.86441480546129
            200505 16 124.82745020705974
            200505 29  89.13584977965128
            200505 10  88.75484704868593
            200505 35  98.09064844750807
            200505  9 105.97496690894737
            200505 12  106.1303116147309
            200505 18  74.67852040006349
            200505  8 102.86871414107324
            200505 25 100.66094904762592
            200505 14  81.54704475858885
            200505 26  96.56709763709318
            200505  7    78.188583643417
            200505 21   97.2497745716862
            200505 23 150.02957996450405
            200505 13 101.10400173516972
            200505  1  99.12486721211037
            200505  3  104.2513863216266
            200505 27   80.0919464740169
            200505 22  96.13645173795065
            200505 30  97.78150857416955
            200505 34 105.98503321281427
            200505  5  96.00000000000001
            200505 17 103.00957592339262
            200505 33   95.1219512195122
            200505 24  89.02291917973463
            200506 34 103.82577987051206
            200506  4  97.31248049381004
            200506 29 100.05748227629813
            200506 13   99.2950873007266
            200506  5  90.16822429906543
            200506 30  97.78150857416955
            200506 17  98.70041039671682
            200506  6  99.99999999999999
            200506  2 104.32162916428265
            200506  1  99.73667223259697
            200506 10   90.8229211546747
            200506 15   85.9957646625541
            200506 25 100.66094904762592
            200506 32  94.47719515978902
            200506 31  82.07934336525308
            200506 12 110.27762039660058
            200506 18  76.20257183679948
            200506  3  96.11829944547135
            200506  7  79.66115113609375
            200506 14 125.18981500901883
            200506 33   95.1219512195122
            200506 11 101.16868428768902
            200506 23  155.4722934332479
            200506 28  62.67673833042804
            200506 26  98.70708872046366
            end
            label values item item
            label def item 1 " Paddy", modify
            label def item 2 "Banana, Cavendish", modify
            label def item 3 "Cassava", modify
            label def item 4 "Cattle", modify
            label def item 5 "Coconut", modify
            label def item 6 "Coffee", modify
            label def item 7 "Durain", modify
            label def item 8 "Egg, chicken", modify
            label def item 9 "Fowl", modify
            label def item 10 "Garlic", modify
            label def item 11 "Glutinous paddy", modify
            label def item 12 "Groundnut", modify
            label def item 13 "Hommali paddy", modify
            label def item 14 "Longan", modify
            label def item 15 "Longkong", modify
            label def item 16 "Lychee", modify
            label def item 17 "Maize", modify
            label def item 18 "Mango, Khiaw Sawei", modify
            label def item 19 "Mangosteen", modify
            label def item 20 "Mung bean", modify
            label def item 21 "Non-Glutinous paddy", modify
            label def item 22 "Onion", modify
            label def item 23 "Orchids", modify
            label def item 24 "Palm kernel (weight over 15 kg.)", modify
            label def item 25 "Peppercorn", modify
            label def item 26 "Pineapple", modify
            label def item 27 "Potato", modify
            label def item 28 "Rambutan", modify
            label def item 29 "Rubber, un-smoked sheet 3", modify
            label def item 30 "Shallot", modify
            label def item 31 "Shrimp, Vannamei", modify
            label def item 32 "Soybean", modify
            label def item 33 "Sugarcane", modify
            label def item 34 "Swine (weight over 100 kg.)", modify
            label def item 35 "Tangerine", modify
            
            
            bys item: g obs = _N
            
            br 
            
            xtset item ym
            
            
            
            //synth2 price, trunit(1) trperiod(202307)
            I see that Egg and Chicken have 5 observations but garlic has 6. Presumably this is a common issue for all your units of interest. So under the hood, you'll get conformability errors since the OLS underlying SCM can't estimate like that.

            Comment


            • #7
              Jared Greathouse

              Thank you so much for your reply. Please take a look at the following data example; it is balanced data.

              Code:
              * Example generated by -dataex-. For more info, type help dataex
              clear
              input long(ym item) double price
              202207  1  146.9655973076763
              202208  1  146.4255188965499
              202209  1 147.54164540120252
              202210  1 150.14065657428324
              202211  1  148.5612931031437
              202212  1 146.74505680408345
              202301  1 153.85223910321233
              202302  1 154.62397822827955
              202303  1 154.96173870778233
              202304  1  156.3860187176764
              202305  1 157.49974027595542
              202306  1 159.61159802698538
              202307  1  164.5787392071495
              202308  1 179.40230370815533
              202309  1 192.26385634401257
              202310  1 189.79914393898736
              202311  1 164.64181143299686
              202312  1  162.4698461071535
              202401  1  170.6627163216008
              202402  1  175.5945125962027
              202403  1 171.37154041388482
              202404  1   165.669700290087
              202405  1 171.13749183055285
              202207  2 283.74921931012756
              202208  2  294.2584511262393
              202209  2  285.5007577009308
              202210  2 283.04860536904926
              202211  2  278.4946041377178
              202212  2  278.4946041377178
              202301  2  278.4946041377178
              202302  2 274.99152735611125
              202303  2   273.239988965308
              202304  2 283.74921694555087
              202305  2  287.9529128878199
              202306  2 289.00383448253734
              202307  2  307.1021319025398
              202308  2 311.77733663976124
              202309  2  319.9500147712492
              202310  2  303.7559929440186
              202311  2  300.6830924724134
              202312  2  311.7738335629797
              202401  2 329.28571439423064
              202402  2 298.34303718230035
              202403  2 311.77733663976124
              202404  2  326.3676514351524
              202405  2 334.83458801629536
              202207  3 200.73936651571174
              202208  3 200.36968175970435
              202209  3  197.9667233317931
              202210  3 192.23659504621082
              202211  3 191.12753681146035
              202212  3 192.60627984288362
              202301  3 199.63030924214436
              202302  3  211.4602534935307
              202303  3 225.50831792975976
              202304  3 232.65556833846819
              202305  3 228.61367380110917
              202306  3 206.28465288354911
              202307  3 202.73567062181158
              202308  3 205.36043848890958
              202309  3 218.29944001386338
              202310  3 208.35489416931617
              202311  3  217.5600684981517
              202312  3  221.9962975924216
              202401  3 222.92051198706116
              202402  3 227.72642683918681
              202403  3 223.84472638170067
              202404  3  196.3031374214419
              202405  3 178.00369240757868
              202207  4  243.2265258054554
              202208  4  244.0240752942939
              202209  4  243.4937519318676
              202210  4  241.3408003887057
              202211  4 241.37749509258694
              202212  4 240.57935383570864
              202301  4 238.68629982054577
              202302  4 236.07342406660766
              202303  4 235.06914139934034
              202304  4 230.78220497385712
              202305  4  227.7069136412357
              202306  4 223.34075455103044
              202307  4 219.87529469740687
              202308  4  219.2324909647264
              202309  4 219.24169788615936
              202310  4 215.92256737763353
              202311  4 216.58928958821534
              202312  4 217.14810290434173
              202401  4 214.93547681962895
              202402  4 212.52884650909039
              202403  4 211.74233961055768
              202404  4 208.93617052303256
              202405  4 206.81935884102896
              202207  5 174.29831339955152
              202208  5  193.8769307019006
              202209  5   181.250462758458
              202210  5 195.39050076508713
              202211  5 216.26410674292998
              202212  5  228.6482185828599
              202301  5 238.86952673854213
              202302  5 252.01457313888798
              202303  5 257.14373188916363
              202304  5  241.1910199976825
              202305  5 226.24552818536978
              202306  5 201.60896692239263
              202307  5 176.34392170676637
              202308  5 185.28111686329916
              202309  5  177.1940142617384
              202310  5 196.26168224299062
              202311  5  269.2054138306123
              202312  5   276.666161307645
              202401  5  320.9141975846216
              202402  5  327.6919544245235
              202403  5  363.0246638215796
              202404  5 362.93718718825244
              202405  5 316.99569300968705
              202207  6 227.70014758773652
              202208  6 227.70014758773652
              202209  6 227.70014758773652
              202210  6 227.70014758773652
              202211  6 227.70014758773652
              202212  6 227.70014758773652
              202301  6 237.52980666822847
              202302  6 253.90117980920007
              202303  6 253.90117980920007
              202304  6 253.90117980920007
              202305  6 253.90117980920007
              202306  6 253.90117980920007
              202307  6 253.90117980920007
              202308  6 253.90117980920007
              202309  6 253.90117980920007
              202310  6 253.90117980920007
              202311  6 253.90117980920007
              202312  6 253.90117980920007
              202401  6  377.0272478145233
              202402  6 436.69504870783686
              202403  6 432.70866660988196
              202404  6 432.70866660988196
              202405  6 432.70866660988196
              202207  7 450.59376594994484
              202208  7   562.805767125328
              202209  7   562.805767125328
              202210  7   562.805767125328
              202211  7   562.805767125328
              202212  7   562.805767125328
              202301  7  562.8057671253281
              202302  7  562.8057671253281
              202303  7  544.7549406982836
              202304  7  367.4134942052626
              202305  7   529.867775009485
              202306  7  437.0675213352074
              202307  7 498.27882781448847
              202308  7 489.54555026630953
              202309  7  482.5746059389601
              202310  7 480.11399562295964
              202311  7 480.11399562295964
              202312  7 480.11399562295964
              202401  7  480.1139956229597
              202402  7  480.1139956229597
              202403  7  480.1139956229597
              202404  7  769.7727812524744
              202405  7  530.4567993424911
              202207  8 133.25143102578474
              202208  8  137.9485628839582
              202209  8 139.83867352057044
              202210  8 139.95247779494304
              202211  8 141.15693200938247
              202212  8 138.72898741938923
              202301  8 140.12824839689503
              202302  8 135.72493754511484
              202303  8 135.07694566121336
              202304  8  138.8984091398809
              202305  8 141.18204240079385
              202306  8  143.7205499000676
              202307  8 144.95659804252446
              202308  8 148.56428923223092
              202309  8  149.0381370232872
              202310  8 149.72662542261227
              202311  8 151.25649301237772
              202312  8 151.91157230750937
              202401  8 146.43907835049788
              202402  8 144.36044188542027
              202403  8 141.85453577189514
              202404  8 140.62335119248237
              202405  8 146.84711073989206
              202207  9  131.4864235758076
              202208  9 136.18744357585868
              202209  9 130.60167334829217
              202210  9 126.17234961179676
              202211  9 126.07342415234665
              202212  9 125.94105994508058
              202301  9  125.8017292005899
              202302  9 125.06327625478959
              202303  9 124.56865211184784
              202304  9 125.13758494237143
              202305  9 126.03301886660945
              202306  9  125.9758926312032
              202307  9 124.87378706665125
              202308  9 124.29695716009113
              202309  9 116.00677786289863
              202310  9 112.57924211132533
              202311  9 113.01116685635009
              202312  9 113.01813339357462
              202401  9  111.8895543632005
              202402  9 111.94528666099674
              202403  9 112.91363533520662
              202404  9 114.18851164729588
              202405  9 114.04221436558075
              202207 10 180.22402333907974
              202208 10 180.22402333907974
              202209 10 180.22402333907974
              202210 10 180.22402333907974
              202211 10 180.22402333907974
              202212 10 180.22402333907974
              202301 10  345.9715524486576
              202302 10  328.3821546512819
              202303 10 271.47780450129267
              202304 10 280.78411668677575
              202305 10 280.78411668677575
              202306 10 280.78411668677575
              202307 10 280.78411668677575
              202308 10 280.78411668677575
              202309 10 280.78411668677575
              202310 10 280.78411668677575
              202311 10 280.78411668677575
              202312 10 280.78411668677575
              202401 10  280.7841166867757
              202402 10  363.3455316315705
              202403 10 305.75182346348566
              202404 10 284.47866587381526
              202405 10 316.15682104911684
              202207 11 153.49557694424675
              202208 11  153.2932068365361
              202209 11 153.19180281369336
              202210 11 157.75860280134788
              202211 11  162.9244712756085
              202212 11  169.5091902497666
              202301 11  178.6338077906789
              202302 11 178.23645514279846
              202303 11 177.94767703247922
              202304 11   181.697755710537
              202305 11 183.79926746714705
              202306 11 187.46830679488244
              202307 11  189.8485112618829
              202308 11  201.2895689634882
              202309 11  210.0071995418445
              202310 11  212.8870229277829
              202311 11 195.10965875900294
              202312 11 195.85187798394432
              202401 11 187.09650602505457
              202402 11 192.47169962418118
              202403 11 188.59284075914536
              202404 11 197.81413655341086
              202405 11 204.99325085472725
              202207 12  275.3031092647311
              202208 12  324.6866790586745
              202209 12 362.29460850637423
              202210 12 306.56090651558094
              202211 12 243.63738767677077
              202212 12 260.05665072237986
              202301 12 265.15580073654417
              202302 12  244.8271893467425
              202303 12 283.24078612011357
              202304 12  276.4419171308786
              202305 12   323.598860383547
              202306 12 283.58072945439125
              202307 12 266.43398900559794
              202308 12 313.01982220283315
              202309 12  284.9574999582156
              202310 12  308.4373875989578
              202311 12 331.05381608626095
              202312 12  291.7393694770541
              202401 12 305.94900084985863
              202402 12   305.184128347734
              202403 12  324.4929097347029
              202404 12  316.1303037114734
              202405 12 353.11613848087853
              202207 13 178.77315462404488
              202208 13  177.4169186943684
              202209 13  177.3670164963093
              202210 13 184.02265763610677
              202211 13 175.27622379291267
              202212 13 167.85164298882978
              202301 13 173.15722373743955
              202302 13 173.69482702526835
              202303 13  174.7280836916612
              202304 13 173.91319233758605
              202305 13 176.10026326033932
              202306 13 180.04277827737099
              202307 13 182.12871124735085
              202308 13 191.10643703992923
              202309 13 195.64906192386937
              202310 13 191.38402827295923
              202311 13  172.9862553001131
              202312 13 176.72940670854058
              202401 13 182.76747184334968
              202402 13  184.9575596315646
              202403 13  185.1299595838754
              202404 13 182.12846307502824
              202405 13 187.71488523229857
              202207 14  116.4436398591594
              202208 14   94.4938946661857
              202209 14  90.60782524434754
              202210 14 107.38705124655688
              202211 14 107.38705124655688
              202212 14 107.38705124655688
              202301 14 107.38705124655687
              202302 14  147.6571954640157
              202303 14  135.9117378665213
              202304 14 139.26758208537842
              202305 14 144.97252111581864
              202306 14 162.33902022945603
              202307 14  171.1481152061748
              202308 14 162.33902022945603
              202309 14 137.17017988380388
              202310 14 138.93199940265953
              202311 14 137.17017988380388
              202312 14  140.9455059356517
              202401 14 151.36540583875166
              202402 14 150.24539244337015
              202403 14 150.24539244337015
              202404 14  139.6870639183691
              202405 14 125.84420172826046
              202207 15 188.74872928367566
              202208 15 188.74872928367566
              202209 15 188.74872928367566
              202210 15 188.74872928367566
              202211 15 188.74872928367566
              202212 15 188.74872928367566
              202301 15 188.74872928367563
              202302 15 188.74872928367563
              202303 15 188.74872928367563
              202304 15 188.74872928367563
              202305 15  360.6960612880584
              202306 15 213.64514703894682
              202307 15  231.7208313843662
              202308 15  161.4400106956082
              202309 15 102.45833460823134
              202310 15  77.34094079734852
              202311 15  73.65803517171605
              202312 15  73.65803517171605
              202401 15  73.65803517171605
              202402 15  73.65803517171605
              202403 15  73.65803517171605
              202404 15  248.5958811343345
              202405 15 216.27842199383124
              202207 16  189.3117538946972
              202208 16  189.3117538946972
              202209 16  189.3117538946972
              202210 16  189.3117538946972
              202211 16  189.3117538946972
              202212 16  189.3117538946972
              202301 16  189.3117538946972
              202302 16  189.3117538946972
              202303 16  189.3117538946972
              202304 16  189.3117538946972
              202305 16 331.76887081837947
              202306 16 319.46358469730154
              202307 16 319.46358469730154
              202308 16 319.46358469730154
              202309 16 319.46358469730154
              202310 16 319.46358469730154
              202311 16 319.46358469730154
              202312 16 319.46358469730154
              202401 16 319.46358469730154
              202402 16 319.46358469730154
              202403 16 319.46358469730154
              202404 16 319.46358469730154
              202405 16 319.46358469730154
              202207 17  212.7393927663305
              202208 17  200.3146334766075
              202209 17 191.39876402488045
              202210 17 195.67715066922034
              202211 17 214.74007671084146
              202212 17  223.4610067253764
              202301 17 229.46305855890915
              202302 17 238.03009575923392
              202303 17 227.41107502607744
              202304 17  219.6306356338352
              202305 17  219.2749614147744
              202306 17 221.51162236918617
              202307 17 204.91107661313276
              202308 17 196.22092532703502
              202309 17 197.14431791680923
              202310 17  189.1928826730507
              202311 17 179.34336076949396
              202312 17 184.31942083661096
              202401 17 183.29342907019506
              202402 17 180.88234841911773
              202403 17 181.75444142057117
              202404 17 176.67578217681267
              202405 17 176.88098053009588
              202207 18 158.75535005556478
              202208 18 158.75535005556478
              202209 18 158.75535005556478
              202210 18 158.75535005556478
              202211 18 158.75535005556478
              202212 18 158.75535005556478
              202301 18 158.75535005556475
              202302 18 158.75535005556475
              202303 18 158.75535005556475
              202304 18 158.75535005556475
              202305 18 158.75535005556475
              202306 18 158.75535005556475
              202307 18 158.75535005556475
              202308 18 158.75535005556475
              202309 18 158.75535005556475
              202310 18 158.75535005556475
              202311 18 158.75535005556475
              202312 18 158.75535005556475
              202401 18 158.75535005556475
              202402 18 158.75535005556475
              202403 18 158.75535005556475
              202404 18 158.75535005556475
              202405 18 158.75535005556475
              202207 19   85.2339967642649
              202208 19   85.2339967642649
              202209 19   85.2339967642649
              202210 19   85.2339967642649
              202211 19   85.2339967642649
              202212 19   85.2339967642649
              202301 19   85.2339967642649
              202302 19   85.2339967642649
              202303 19   85.2339967642649
              202304 19   407.023899304449
              202305 19  409.7482358268173
              202306 19 145.44234503413315
              202307 19 128.52339731904348
              202308 19 100.46957368587724
              202309 19  73.23020888663093
              202310 19   78.0522426827665
              202311 19   78.0522426827665
              202312 19   78.0522426827665
              202401 19  78.05224268276652
              202402 19  78.05224268276652
              202403 19  78.05224268276652
              202404 19  418.9724463167866
              202405 19 211.99589084089666
              202207 20 110.03503579152071
              202208 20 118.86194576571832
              202209 20  131.7869623675544
              202210 20  165.9425334716188
              202211 20  184.4288671482131
              202212 20 178.31814550700778
              202301 20 189.51646337701482
              202302 20  180.6306892473722
              202303 20 155.85143268395245
              202304 20  161.7379063116096
              202305 20 159.77575013314652
              202306 20 152.93622602943245
              202307 20 148.58584145715494
              202308 20 136.91660484618086
              202309 20 140.15416608269103
              202310 20 138.75262511562724
              202311 20 145.50805522704982
              202312 20 131.36649986930632
              202401 20 140.78485983006314
              202402 20  140.1541649147397
              202403 20 147.69446021793982
              202404 20 143.62998581079222
              202405 20  140.1541625788371
              202207 21  136.2938423996873
              202208 21 136.12620707609324
              202209 21 138.56935331364414
              202210 21 137.96218539825557
              202211 21 138.53606506680575
              202212 21  137.1995757704915
              202301 21 145.17177274581843
              202302 21 146.52036002800395
              202303 21 146.67459056217044
              202304 21 148.76655149838382
              202305 21 148.99831382195742
              202306 21  149.6627930723767
              202307 21 157.53997595431326
              202308 21  177.9924061302921
              202309 21 198.06131650135262
              202310 21 194.73879983230546
              202311 21  161.3678198311487
              202312 21 154.57577762042678
              202401 21 170.17845982729386
              202402 21  176.9155351022093
              202403 21 169.71005737432105
              202404 21 157.10850616170728
              202405 21 162.32780628145022
              202207 22 171.02984454193057
              202208 22 171.02984454193057
              202209 22 171.02984454193057
              202210 22 171.02984454193057
              202211 22 171.02984454193057
              202212 22 171.02984454193057
              202301 22 291.35546499935407
              202302 22 165.68031631283122
              202303 22 198.39772084442447
              202304 22  232.1229900969141
              202305 22  232.1229900969141
              202306 22  232.1229900969141
              202307 22  232.1229900969141
              202308 22  232.1229900969141
              202309 22  232.1229900969141
              202310 22  232.1229900969141
              202311 22  232.1229900969141
              202312 22  232.1229900969141
              202401 22 232.12299009691407
              202402 22 232.12299009691407
              202403 22 185.29525315286222
              202404 22 180.33336738855192
              202405 22 180.33336738855192
              202207 23  114.7110994788997
              202208 23  77.61782530625126
              202209 23  55.07789252957999
              202210 23 50.972193813922324
              202211 23  69.21711520903179
              202212 23  68.03391665845005
              202301 23  76.31630651252225
              202302 23  74.71898846923688
              202303 23  88.44409165598505
              202304 23  47.72234114244402
              202305 23  88.31394025699076
              202306 23 116.36757744971413
              202307 23  184.5789748136463
              202308 23 109.44586592881095
              202309 23  45.37566441480973
              202310 23 24.847169686452386
              202311 23 22.184972823407623
              202312 23 21.770853330704018
              202401 23   29.5799637645435
              202402 23  14.78998188227175
              202403 23  22.24413275093671
              202404 23  24.61052985210019
              202405 23  53.24393477617829
              202207 24 249.42701427095892
              202208 24 226.89987483474056
              202209 24 185.37393987711096
              202210 24  189.0470408511459
              202211 24  208.5343735562424
              202212 24  168.8178486142943
              202301 24 157.87092488314227
              202302 24 174.33654570189984
              202303 24   200.392033590923
              202304 24 209.04703766385208
              202305 24  191.0012024525934
              202306 24 187.09287831423396
              202307 24 197.87695623546432
              202308 24 193.15439806619415
              202309 24 183.20264921969232
              202310 24   198.600719791556
              202311 24 216.58624307750293
              202312 24 182.84076744345592
              202401 24 214.23401153196613
              202402 24  202.9252060245777
              202403 24 197.22556804885394
              202404 24 174.96983881031358
              202405 24  143.1242425015078
              202207 25  260.3300341321611
              202208 25  260.3300354338112
              202209 25  273.3421970048669
              202210 25  340.1541664320959
              202211 25  386.1562172960389
              202212 25  386.1562172960389
              202301 25  381.8173833938361
              202302 25  351.4455460784173
              202303 25 412.18922070925487
              202304 25  433.8833866045736
              202305 25 433.88339238968524
              202306 25 433.88339022026827
              202307 25 433.88339022026827
              202308 25 433.88339022026827
              202309 25 433.88339022026827
              202310 25 433.88339238968524
              202311 25 433.88339022026827
              202312 25 433.88339022026827
              202401 25 433.88339022026827
              202402 25 433.88339022026827
              202403 25 433.88339022026827
              202404 25 433.88339022026827
              202405 25 433.88339022026827
              202207 26  166.3174278527642
              202208 26 186.28622008167636
              202209 26  195.4079309150692
              202210 26 187.46321515399023
              202211 26 186.04547015938482
              202212 26 188.65358422703977
              202301 26 189.99107862070898
              202302 26 195.27418147570228
              202303 26  206.1747607841062
              202304 26 203.92331698617917
              202305 26 209.71912197592513
              202306 26 216.27284345630858
              202307 26 225.92955410824788
              202308 26 225.56842949230946
              202309 26 223.96343621990644
              202310 26 256.74542509246555
              202311 26  279.5363282768615
              202312 26  284.8194311318548
              202401 26 283.48193673818554
              202402 26 290.37003286558195
              202403 26  302.8756054463889
              202404 26  319.7280348066207
              202405 26  330.0936163575569
              202207 27 110.33576514243501
              202208 27 110.33576514243501
              202209 27 110.33576514243501
              202210 27 110.33576514243501
              202211 27 110.33576514243501
              202212 27 110.33576514243501
              202301 27 110.33576514243502
              202302 27 128.06830309498392
              202303 27 128.06830309498392
              202304 27 128.06830309498392
              202305 27 128.06830309498392
              202306 27 128.06830309498392
              202307 27 128.06830309498392
              202308 27 128.06830309498392
              202309 27 128.06830309498392
              202310 27 125.60544860027909
              202311 27 125.60544797225187
              202312 27 125.60544797225187
              202401 27 125.60544797225187
              202402 27 125.60544797225187
              202403 27 130.40800921824973
              202404 27 130.87595108324442
              202405 27 130.87595108324442
              202207 28 155.14235521499134
              202208 28  276.2347334282401
              202209 28  276.2347334282401
              202210 28  276.2347334282401
              202211 28  276.2347334282401
              202212 28  276.2347334282401
              202301 28  276.2347334282401
              202302 28  276.2347334282401
              202303 28  276.2347334282401
              202304 28  271.1601510749591
              202305 28  286.9184525223321
              202306 28  231.1640461287043
              202307 28 263.21130598892125
              202308 28  222.1189175537479
              202309 28 137.30388965281819
              202310 28  88.41758446397446
              202311 28  88.41758446397446
              202312 28  88.41758446397446
              202401 28  88.41758446397446
              202402 28  88.41758446397446
              202403 28  88.41758446397446
              202404 28   348.634497385242
              202405 28 211.60177661969797
              202207 29  107.5062245589434
              202208 29  97.96895957079904
              202209 29  87.28204636903625
              202210 29  89.95976060739612
              202211 29  83.10978906998476
              202212 29  82.60681916495025
              202301 29  83.09541850126949
              202302 29  86.57788631993685
              202303 29  85.78750504059695
              202304 29  83.20239870835209
              202305 29  84.58708395685005
              202306 29  84.84383769496081
              202307 29  82.49472914144478
              202308 29   80.4608142368031
              202309 29  87.20061096426527
              202310 29  93.68844418869523
              202311 29  96.18700660088149
              202312 29  94.95113769136817
              202401 29 108.23912356342221
              202402 29 127.97470459906125
              202403 29 146.45525596689993
              202404 29   142.924886252515
              202405 29  137.9382989083159
              202207 30 266.61469533727075
              202208 30 266.61469533727075
              202209 30 266.61469533727075
              202210 30 266.61469533727075
              202211 30 266.61469533727075
              202212 30 361.64407298312165
              202301 30  278.0369279333554
              202302 30 219.25290254122206
              202303 30 215.99711655714123
              202304 30  248.5909332893656
              202305 30  248.5909332893656
              202306 30  248.5909332893656
              202307 30  248.5909332893656
              202308 30  248.5909332893656
              202309 30  248.5909332893656
              202310 30  248.5909332893656
              202311 30  248.5909332893656
              202312 30 374.68520468731276
              202401 30  216.6446762003838
              202402 30 251.14521497091985
              202403 30  263.9345179249611
              202404 30 292.79289106767425
              202405 30 292.79289106767425
              202207 31 123.33857420791729
              202208 31 116.19972407819428
              202209 31 113.60191234463069
              202210 31 107.49767226865119
              202211 31 119.83584131326948
              202212 31 122.82968229177503
              202301 31 134.82557802470933
              202302 31 130.51436062222987
              202303 31 118.37072207493165
              202304 31 109.32968171819437
              202305 31 103.65471748914914
              202306 31  98.80505908938102
              202307 31  93.27496393477432
              202308 31  87.06566129805064
              202309 31  84.93775437450415
              202310 31   90.5926110472449
              202311 31 100.86730253987692
              202312 31 102.46169374488717
              202401 31 104.54650901424422
              202402 31 104.64705620735299
              202403 31 104.59165265196651
              202404 31 104.75375935106024
              202405 31 100.92270609526337
              202207 32 190.81600515823786
              202208 32 190.81600515823786
              202209 32 190.81600515823786
              202210 32 170.64845847554068
              202211 32 176.85385843934242
              202212 32  193.1430296113871
              202301 32 223.97610361561453
              202302 32  243.1740553540958
              202303 32 246.19918714318985
              202304 32 205.86409490640222
              202305 32 200.44057929866602
              202306 32 200.12410297083483
              202307 32  200.1241039714553
              202308 32 222.88240212263443
              202309 32  217.6465971030486
              202310 32 206.58392388569672
              202311 32 152.42010168127536
              202312 32 155.91063836099923
              202401 32 155.91063836099923
              202402 32 155.91063836099923
              202403 32 181.04249792894873
              202404 32 201.72974984350782
              202405 32 184.16071522223106
              202207 33 196.25990363008788
              202208 33 196.25990363008788
              202209 33 196.25990363008788
              202210 33 196.25990363008788
              202211 33 196.25990363008788
              202212 33 206.60761678602918
              202301 33 195.87712924941331
              202302 33 207.98780487804885
              202303 33 212.50975078481727
              202304 33 212.50975078481727
              202305 33 212.50975078481727
              202306 33 212.50975078481727
              202307 33 212.50975078481727
              202308 33 212.50975078481727
              202309 33 212.50975078481727
              202310 33 212.50975078481727
              202311 33 212.50975078481727
              202312 33 242.65791874067116
              202401 33 257.09404845069764
              202402 33 263.85685315967635
              202403 33 273.36996267794615
              202404 33 273.36996267794615
              202405 33 273.36996267794615
              202207 34 208.09551316976385
              202208 34 210.17808374733377
              202209 34 211.21835846291944
              202210 34  209.7341251250854
              202211 34 211.55637241225944
              202212 34  206.5618379369378
              202301 34 202.84368449419839
              202302 34 189.45429611288165
              202303 34 177.07390459526624
              202304 34  175.0071412277252
              202305 34 163.96602715875227
              202306 34  159.6081688845961
              202307 34 146.77675650278994
              202308 34  140.2253391328934
              202309 34 138.64625904120078
              202310 34 129.66013362137733
              202311 34 130.51878930408654
              202312 34 133.73748929929383
              202401 34 136.35583616059876
              202402 34 135.64449337168932
              202403 34 129.27267817741537
              202404 34 132.35011861170443
              202405 34 142.61666169986555
              202207 35  153.7241428658578
              202208 35  153.7241428658578
              202209 35  153.7241428658578
              202210 35 210.45567704203026
              202211 35 190.32513243457598
              202212 35 201.30543021411592
              202301 35 192.15518338620154
              202302 35 161.19074812053935
              202303 35 258.98856679314605
              202304 35 258.98856679314605
              202305 35 215.94582513877884
              202306 35 164.70444290245845
              202307 35 164.70444290245845
              202308 35 164.70444290245845
              202309 35 164.70444290245845
              202310 35 164.70444290245845
              202311 35 164.70444290245845
              202312 35 164.70444290245845
              202401 35  183.0049228329183
              202402 35  183.0049228329183
              202403 35  183.0049228329183
              202404 35 146.40393826633465
              202405 35  164.7044387848476
              end
              label values item item
              label def item 1 " Paddy", modify
              label def item 2 "Banana, Cavendish", modify
              label def item 3 "Cassava", modify
              label def item 4 "Cattle", modify
              label def item 5 "Coconut", modify
              label def item 6 "Coffee", modify
              label def item 7 "Durain", modify
              label def item 8 "Egg, chicken", modify
              label def item 9 "Fowl", modify
              label def item 10 "Garlic", modify
              label def item 11 "Glutinous paddy", modify
              label def item 12 "Groundnut", modify
              label def item 13 "Hommali paddy", modify
              label def item 14 "Longan", modify
              label def item 15 "Longkong", modify
              label def item 16 "Lychee", modify
              label def item 17 "Maize", modify
              label def item 18 "Mango, Khiaw Sawei", modify
              label def item 19 "Mangosteen", modify
              label def item 20 "Mung bean", modify
              label def item 21 "Non-Glutinous paddy", modify
              label def item 22 "Onion", modify
              label def item 23 "Orchids", modify
              label def item 24 "Palm kernel (weight over 15 kg.)", modify
              label def item 25 "Peppercorn", modify
              label def item 26 "Pineapple", modify
              label def item 27 "Potato", modify
              label def item 28 "Rambutan", modify
              label def item 29 "Rubber, un-smoked sheet 3", modify
              label def item 30 "Shallot", modify
              label def item 31 "Shrimp, Vannamei", modify
              label def item 32 "Soybean", modify
              label def item 33 "Sugarcane", modify
              label def item 34 "Swine (weight over 100 kg.)", modify
              label def item 35 "Tangerine", modify

              Comment


              • #8
                Hi. I have a similar issue.

                i checked
                bys item: g obs = _N br and i have 40 observations for each unit(country) yet i still have a comfortability error.

                code:
                . synth GDP_PC GDP_PC(1993) GDP_PC(1992) GDP_PC(1991) GDP_PC(1990) GDP_PC
                > (1989) GDP_PC(1988) GDP_PC(1987) GDP_PC(1986) GDP_PC(1985) GDP_PC(1984)
                > GDP_PC(1983) GDP_PC(1982) GDP_PC(1981) GDP_PC(1980), trunit(44) trperiod
                > (1994) keep("synth_weight.dta") replace

                please assist @Jared Greathouse

                Comment


                • #9
                  I do not know why synth returns this. However, I have a different recommendation since synth isn't working. One solution is maybe the forward difference-in-differences method. Tshego Mello

                  Comment


                  • #10
                    the problem is my paper is based on SCM. Please, what can show you for you to be able to identify the issue? @Jared Greathouse

                    * Example generated by -dataex-. For more info, type help dataex
                    clear
                    input str24 Country int Years double GDP_PC byte Treated long numeric_country
                    "Algeria" 1980 2259.7243664761 0 1
                    "Algeria" 1981 2291.75610066667 0 1
                    "Algeria" 1982 2260.34752384937 0 1
                    "Algeria" 1983 2359.59326397424 0 1
                    "Algeria" 1984 2510.03683324232 0 1
                    "Algeria" 1985 2617.72544861118 0 1
                    "Algeria" 1986 2783.4310226391 0 1
                    "Algeria" 1987 2829.87927404758 0 1
                    "Algeria" 1988 2437.37792301413 0 1
                    "Algeria" 1989 2235.26812213413 0 1
                    "Algeria" 1990 2431.55135968865 0 1
                    "Algeria" 1991 1749.28608748967 0 1
                    "Algeria" 1992 1794.62350740515 0 1
                    "Algeria" 1993 1825.87509656701 0 1
                    "Algeria" 1994 1522.82520284828 0 1
                    "Algeria" 1995 1466.54468037742 0 1
                    "Algeria" 1996 1619.53241242785 0 1
                    "Algeria" 1997 1634.46740988129 0 1
                    "Algeria" 1998 1610.30297761325 0 1
                    "Algeria" 1999 1602.8649145582 0 1
                    "Algeria" 2000 1780.37606280604 0 1
                    "Algeria" 2001 1904.21555356782 0 1
                    "Algeria" 2002 1945.19192868032 0 1
                    "Algeria" 2003 2292.31758148495 0 1
                    "Algeria" 2004 2827.22716459299 0 1
                    "Algeria" 2005 3248.09981432319 0 1
                    "Algeria" 2006 3681.29098817798 0 1
                    "Algeria" 2007 4192.66316915541 0 1
                    "Algeria" 2008 5217.99182157355 0 1
                    "Algeria" 2009 4270.85845146029 0 1
                    "Algeria" 2010 4958.2593791361 0 1
                    "Algeria" 2011 5974.57008682611 0 1
                    "Algeria" 2012 6096.09001549263 0 1
                    "Algeria" 2013 6044.67490330703 0 1
                    "Algeria" 2014 6164.64469897525 0 1
                    "Algeria" 2015 4741.49977033558 0 1
                    "Algeria" 2016 4481.08196153066 0 1
                    "Algeria" 2017 4615.86874364885 0 1
                    "Algeria" 2018 4640.31414537956 0 1
                    "Algeria" 2019 4530.10174483631 0 1
                    "Angola" 1980 802.627 0 2
                    "Angola" 1981 731.427 0 2
                    "Angola" 1982 712.576 0 2
                    "Angola" 1983 723.654 0 2
                    "Angola" 1984 747.325 0 2
                    "Angola" 1985 817.068 0 2
                    "Angola" 1986 743.735 0 2
                    "Angola" 1987 828.958 0 2
                    "Angola" 1988 875.526 0 2
                    "Angola" 1989 991.295 0 2
                    "Angola" 1990 1062.788 0 2
                    "Angola" 1991 996.472 0 2
                    "Angola" 1992 743.754 0 2
                    "Angola" 1993 450.980076344484 0 2
                    "Angola" 1994 329.224181981965 0 2
                    "Angola" 1995 398.113614094094 0 2
                    "Angola" 1996 454.376649770871 0 2
                    "Angola" 1997 516.128602285455 0 2
                    "Angola" 1998 423.40371118599 0 2
                    "Angola" 1999 387.689437952028 0 2
                    "Angola" 2000 556.884252978488 0 2
                    "Angola" 2001 527.46411051877 0 2
                    "Angola" 2002 872.657631363509 0 2
                    "Angola" 2003 982.805587449171 0 2
                    "Angola" 2004 1254.696118613 0 2
                    "Angola" 2005 1900.72380923794 0 2
                    "Angola" 2006 2597.9635866386 0 2
                    "Angola" 2007 3121.34872503374 0 2
                    "Angola" 2008 4081.71750626182 0 2
                    "Angola" 2009 3123.69888517374 0 2
                    "Angola" 2010 3586.66369358621 0 2
                    "Angola" 2011 4608.15516572683 0 2
                    "Angola" 2012 5083.82687346735 0 2
                    "Angola" 2013 5061.34925297484 0 2
                    "Angola" 2014 5011.9844274536 0 2
                    "Angola" 2015 3217.33924005417 0 2
                    "Angola" 2016 1809.70937719455 0 2
                    "Angola" 2017 2439.37443934002 0 2
                    "Angola" 2018 2540.50887884546 0 2
                    "Angola" 2019 2191.34776433537 0 2
                    "Benin" 1980 366.529526562753 0 3
                    "Benin" 1981 327.565035251454 0 3
                    "Benin" 1982 312.693212499311 0 3
                    "Benin" 1983 262.577339668772 0 3
                    "Benin" 1984 244.844367501528 0 3
                    "Benin" 1985 236.610586129281 0 3
                    "Benin" 1986 293.559632058489 0 3
                    "Benin" 1987 333.22311887927 0 3
                    "Benin" 1988 335.341923087306 0 3
                    "Benin" 1989 301.684930793 0 3
                    "Benin" 1990 381.805056269058 0 3
                    "Benin" 1991 375.291995673292 0 3
                    "Benin" 1992 310.623720074924 0 3
                    "Benin" 1993 398.613027305189 0 3
                    "Benin" 1994 269.790586928328 0 3
                    "Benin" 1995 358.822986995425 0 3
                    "Benin" 1996 380.588286871895 0 3
                    "Benin" 1997 355.142071829216 0 3
                    "Benin" 1998 372.877346566327 0 3
                    "Benin" 1999 541.702259297898 0 3
                    end
                    label values numeric_country numeric_country
                    label def numeric_country 1 "Algeria", modify
                    label def numeric_country 2 "Angola", modify
                    label def numeric_country 3 "Benin", modify

                    Last edited by Tshego Mello; 24 Sep 2024, 05:19.

                    Comment


                    • #11
                      Listen, I already said I do not know the issue. Show me the output of

                      Code:
                      xtdescribe
                      please.

                      Comment


                      • #12
                        Thank you for the assistence. I'm sorry if that aggressive or rude

                        here is the ouput.
                        . xtdescribe

                        numeric_country: 1, 2, ..., 51 n = 5
                        > 1
                        Years: 1980, 1981, ..., 2019 T = 4
                        > 0
                        Delta(Years) = 1 unit
                        Span(Years) = 40 periods
                        (numeric_country*Years uniquely identifies each observation)

                        Distribution of T_i: min 5% 25% 50% 75% 95%
                        > max
                        40 40 40 40 40 40
                        > 40

                        Freq. Percent Cum. | Pattern
                        ---------------------------+------------------------------------------
                        51 100.00 100.00 | 1111111111111111111111111111111111111111
                        ---------------------------+------------------------------------------
                        51 100.00 | XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

                        Comment


                        • #13
                          It's fine, I guess my point is that... synth is such an odd bird sometimes. Its syntax and error codes aren't user friendly, always. In general, a conformability error means that there's a mismatch of matrix dimensions. But, the reason is esoteric in this case. No output is provided (by the synth authors), so it's kind of hard to say why this issue comes up.

                          The reason I suggested FDID is because it does not suffer from those kinds of issues. It selects a subset of controls, just like synth does, and provides valid Inference (which synth does not do). In other words, if synth does not work for some reason, you can try the next best thing, or the implementation of SCM from sdid or sdid_event.

                          Plus, I'm the author of fdid, meaning I can better diagnose any issues you have with using it. So, unless you for some reason "must" use SCM, I think FDID is your better buy.

                          Comment

                          Working...
                          X