Announcement

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

  • CSDID - Why is my data not pulling through after running the regression?

    Hi all

    Is there anyone who can please guide me here? I'm trying to run a CSDID with a few basic covariates. I know I'm doing something wrong but I cannot figure out what. The results are not pulling through

    I've copied and pasted the results from the basic CSDID regression. my observation is 3,960 but it shows 0 after running the model. I may have missed a step somewhere I know, but what? Please help me.
    Thanks


    csdid mva capital labour rawmaterials, ivar(firm_id) time(year) gvar(first_treat) notyet
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxx
    Difference-in-difference with Multiple Time Periods

    Number of obs = 0
    Outcome model : least squares
    Treatment model: inverse probability

    Coefficient Std. err. z P>z [95% conf. interval]

    g2010
    t_2009_2010 0 (omitted)
    t_2009_2011 0 (omitted)
    t_2009_2012 0 (omitted)
    t_2009_2013 0 (omitted)
    t_2009_2014 0 (omitted)
    t_2009_2015 0 (omitted)
    t_2009_2016 0 (omitted)
    t_2009_2017 0 (omitted)
    t_2009_2018 0 (omitted)
    t_2009_2019 0 (omitted)
    t_2009_2020 0 (omitted)

    g2011
    t_2009_2010 0 (omitted)
    t_2010_2011 0 (omitted)
    t_2010_2012 0 (omitted)
    t_2010_2013 0 (omitted)
    t_2010_2014 0 (omitted)
    t_2010_2015 0 (omitted)
    t_2010_2016 0 (omitted)
    t_2010_2017 0 (omitted)
    t_2010_2018 0 (omitted)
    t_2010_2019 0 (omitted)
    t_2010_2020 0 (omitted

  • #2
    Faq
    tabulate year and gvar

    Comment


    • #3
      here we go

      tab year first_treat

      | first_treat
      tab year first_treat

      | first_treat
      year | 0 2010 2011 2012 2013 2014 2015 2016 | Total
      -----------+----------------------------------------------------------------------------------------+----------
      2009 | 330 0 0 0 0 0 0 0 | 330
      2010 | 320 10 0 0 0 0 0 0 | 330
      2011 | 246 0 84 0 0 0 0 0 | 330
      2012 | 200 0 0 130 0 0 0 0 | 330
      2013 | 162 0 0 0 168 0 0 0 | 330
      2014 | 146 0 0 0 0 184 0 0 | 330
      2015 | 124 0 0 0 0 0 206 0 | 330
      2016 | 113 0 0 0 0 0 0 217 | 330
      2017 | 83 0 0 0 0 0 0 0 | 330
      2018 | 86 0 0 0 0 0 0 0 | 330
      2019 | 138 0 0 0 0 0 0 0 | 330
      2020 | 196 0 0 0 0 0 0 0 | 330
      -----------+----------------------------------------------------------------------------------------+----------
      Total | 2,144 10 84 130 168 184 206 217 | 3,960


      | first_treat
      year | 2017 2018 2019 2020 | Total
      -----------+--------------------------------------------+----------
      2009 | 0 0 0 0 | 330
      2010 | 0 0 0 0 | 330
      2011 | 0 0 0 0 | 330
      2012 | 0 0 0 0 | 330
      2013 | 0 0 0 0 | 330
      2014 | 0 0 0 0 | 330


      Last edited by Kagiso Matswalela; 05 Nov 2023, 22:44.

      Comment


      • #4
        first.pdf

        apologies about the response "#3" sent at 23:11. I tried to edit it but could not get a better structure

        please use the attachment on this response.

        Comment


        • #5
          Your gvar is not constructed correctly
          look at the example dataset in help file to see how the tab should look like

          Comment


          • #6
            Thanks Fernado
            let me look at that

            Comment

            Working...
            X