Hi everyone,
I am wondering what the correct way is to use an interaction term in Stata using xtivreg. As the ## is not allowed I have made a manually interaction variable with the gen var = var1 * var2.
When using the xtivreg I have created an instrument for my main independent variable. I need to be sure how I tell Stata that the variation my instrument causes to my inpendent variable is interacted in the xtivreg commando.
In other words what is the correct way to use an interaction term using IV-estimation in Stata, where the instrument then needs to be conditioned on a Z-variable?
Thanks in advance!
I am wondering what the correct way is to use an interaction term in Stata using xtivreg. As the ## is not allowed I have made a manually interaction variable with the gen var = var1 * var2.
When using the xtivreg I have created an instrument for my main independent variable. I need to be sure how I tell Stata that the variation my instrument causes to my inpendent variable is interacted in the xtivreg commando.
In other words what is the correct way to use an interaction term using IV-estimation in Stata, where the instrument then needs to be conditioned on a Z-variable?
Thanks in advance!

Comment