Announcement

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

  • Regression variable dummy

    I would like to investigate the effects of economic growth, population growth and inequality on CO2 emissions during the SDGs with panel data regression. I used a dummy variable on the SDGs variable (0=years before SDGs and 1=years after SDGs). And my regression syntax is
    reg emico2 gdp pop ineq dm i.code
    Is that true?
    I am very layman about STATA

  • #2
    Daffa:
    welcome to this forum.
    If you are dealing with a panel dataset with a continuous regerssand, you should start from -xtreg- with the -fe- or the -re- specification.
    Pooled -regress. is an option if you detect no evidence of a panel-wise effect.
    See -xtreg- entry in Stata .pdf manual for further details.
    Kind regards,
    Carlo
    (StataNow 18.5)

    Comment


    • #3
      Thanks for the response, sir
      I appreciate that, it means a lot to me
      I have written xtset code year
      The best method (FEM) has also been selected.
      what syntax should I write for my dummy variables (SDGs)?

      Comment


      • #4
        Daffa:
        I would go:
        Code:
        xtreg reg emico2 gdp pop ineq dm i.SDGS, fe vce(cluster idcode)
        Kind regards,
        Carlo
        (StataNow 18.5)

        Comment

        Working...
        X