Dear all,
Currently, I am running into some trouble with xtivreg in combination with an interaction
I am researching the effect of bilateral tax treaties on FDI inflow, with several control variables and fixed effects for the source and resident country and year. My main independent variable is a dummy denoting whether a country pair has concluded a bilateral tax treaty. As instruments, I am using two dummies on common language and colonial relationship, a continuous variable on the number of treaties closed prior to the year of interest and the GDP of the source country. Because my independent variable is a dummy, I have to use a probit model to estimate the first stage regression before I can estimate the second stage regression.
My regression is formulated as follows:
Next, I would like to make an interaction between the instrumented variable tt_d and the categorical variable income level, denoting four country income level groups.
I have already tried to use the standard interaction method:
However, Stata then states that the parentheses are imbalanced.
Does anyone know how to solve this or have any other suggestions on how to make an interaction between the two variables?
Kind regards,
David
Currently, I am running into some trouble with xtivreg in combination with an interaction
I am researching the effect of bilateral tax treaties on FDI inflow, with several control variables and fixed effects for the source and resident country and year. My main independent variable is a dummy denoting whether a country pair has concluded a bilateral tax treaty. As instruments, I am using two dummies on common language and colonial relationship, a continuous variable on the number of treaties closed prior to the year of interest and the GDP of the source country. Because my independent variable is a dummy, I have to use a probit model to estimate the first stage regression before I can estimate the second stage regression.
My regression is formulated as follows:
Code:
probit tt_d comlang_off colony treaties_s ln_Openness_1 ln_GDP_pc_1 ln_Telephone_1 RoL_1 ln_Gov_exp_1 ln_GDP_Growth_1 ln_av_CPI_5 ln_M2_growth_1 i.year i.Country_e i.cou_e, robust predict tt_d_iv, xb xtivreg ln_FDI (tt_d=tt_d_iv) ln_Openness_1 ln_GDP_pc_1 ln_Telephone_1 RoL_1 ln_Gov_exp_1 ln_GDP_Growth_1 ln_av_CPI_5 ln_M2_growth_1 i.year i.Country_e i.cou_e, re
Next, I would like to make an interaction between the instrumented variable tt_d and the categorical variable income level, denoting four country income level groups.
I have already tried to use the standard interaction method:
Code:
xtivreg ln_FDI c.(tt_d=tt_d_iv)##i.Income_level_S_e ln_Openness_1 ln_GDP_pc_1 ln_Telephone_1 RoL_1 ln_Gov_exp_1 ln_GDP_Growth_1 ln_av_CPI_5 ln_M2_growth_1 i.year i.Country_e i.cou_e, re
Does anyone know how to solve this or have any other suggestions on how to make an interaction between the two variables?
Kind regards,
David

Comment