Announcement

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

  • Synth Command Issues

    Hi I am running the following command and getting this error and I am not sure what it implies. If someone could help me with this. Thank you in advance. ** C1 = country
    tsset C1 Year
    panel variable: C1 (strongly balanced)
    time variable: Year, 1990 to 2019
    delta: 1 unit
    synth Educationalattainmentatleast Quotas GDPcurrentUS GDPpercapitaCurrentUS Governmentexpenditureoneducat Governmentexpenditureonheal
    > th DemocracyPerformanceNumber Populationages1564oftota Populationages1564female Populationages1564male Populationages1564total Populat
    > ionfemale Populationfemaleoftotal Populationmale Populationtotal Educationalattainmentatleast(1990) Educationalattainmentatleast(1991)
    > Educationalattainmentatleast(1992) Educationalattainmentatleast(1993) Educationalattainmentatleast(1994) Educationalattainmentatleast
    > (1995) Educationalattainmentatleast(1996) Educationalattainmentatleast(1997) Educationalattainmentatleast(1998) Educationalattainmenta
    > tleast(1999) Educationalattainmentatleast(2000) Educationalattainmentatleast(2001) Educationalattainmentatleast(2002), trunit(17)trper
    > iod(2003)xperiod(1990(1)2002) nested fig
    Synthetic Control Method for Comparative Case Studies
    First Step: Data Setup
    at least one time period specified in xperiod() not found in timevar
    r(198);

  • #2
    2003 ain't in the numlist xperiod(1990(1)2002)


    Also, please put your code in code delimiters like this

    Code:
    xtset C1 Year, y

    Comment


    • #3
      okay thank you so much

      Comment


      • #4
        Oh and in my personal opinion, you're better off doing
        Code:
        Educationalattainmentatleast(1990/2002)
        Classic SCM matches on averages of the outcomes or covariates. You're basically averaging it from 1990/2002, but you're not using the notation to more efficiently do this.

        Comment

        Working...
        X