Announcement

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

  • Fixed years effect in panel data regression

    Hello everyone,

    I am quite new to stata and I am trying to run a panel data regression to the effect of inward FDI on economic growth (GDP per capita). I include country and year effects to account for fixed effects in the model. Since the country effect is included with the xtset of the data, I included dummy variables for the year effects. However, my stata software omits the first and last year of these dummy variables and I am not really sure how it works and what steps I must take in stata to solve this problem. I took logarithms for a few variables due to violations of normality assumptions and a lag variable for fdi. I also added the file with data to this post.
    Click image for larger version

Name:	Stata list .png
Views:	1
Size:	42.4 KB
ID:	1735244
    Attached Files

  • #2
    Thomas:
    1) the best way to go -fe- with a continuous regressand is -xtreg,fe-;
    2) given the previous point, the best way to include year fixed effect is to have a unique -timevar-;
    3) -year1- is omitted to save you from the dummy trap;
    4) the last year is omitted due to collinearity with other predictors;
    5) logging your variables due to the violation of normality is not mandatory, as normality is a weak requirement for residual distribution only.
    Kind regards,
    Carlo
    (Stata 19.0)

    Comment

    Working...
    X