Dear Statalisters,
I am analyzing whether Government expenditures have the potential to reduce income inequality in a Dynamic Panel data of 30 countries (1995-2020).
I first computed fixed effects estimators (with country and time FE), and I now want to run a First-differenced model because I suspect endogeneity in my independent variables.
I get satisfactory results with the following code
but I want to add time fixed effects. I have created year dummies and tried running the following code
but I get an error message
Is there any other way to include time FE?
Thanks a lot for your help!
Melanie
I am analyzing whether Government expenditures have the potential to reduce income inequality in a Dynamic Panel data of 30 countries (1995-2020).
I first computed fixed effects estimators (with country and time FE), and I now want to run a First-differenced model because I suspect endogeneity in my independent variables.
I get satisfactory results with the following code
Code:
xtivreg gini_std_WIID l.gini_std_WIID total_GE educ_GE health_GE defence_GE social_prot_GE logGDPpc logGDPpc2biis hc Unempl TaxP TaxIn Trade CPI (l.gini_std_WIID=l2.gini_std_WIID), fd
Code:
xtivreg gini_std_WIID l.gini_std_WIID total_GE educ_GE health_GE defence_GE social_prot_GE logGDPpc logGDPpc2biis hc Unempl TaxP TaxIn Trade CPI y* (l.gini_std_WIID=l2.gini_std_WIID), fd
Code:
no observations r(2000);
Thanks a lot for your help!
Melanie
Comment