Hello,
Hope you can help me with the following question related to 2SLS and Two Way Fix Effect:
I have 8,000 observations from 1995-2015 and for 1,700 firms.
I perform a regression with two way fix effect (years and firms) as follows:
I suspect B and the error terms (u) are correlated – therefore I perform a 2SLS regression; as follows:
As I need to have the code with fix effects – I wrote it as follows:
My question – Is there a way to write it with TWO WAY fix effect? (years & firms; currently it is with only one fix effect) and how?; or the way I wrote it here (in #3) is OK.
Many thanks,
Doron
Hope you can help me with the following question related to 2SLS and Two Way Fix Effect:
I have 8,000 observations from 1995-2015 and for 1,700 firms.
I perform a regression with two way fix effect (years and firms) as follows:
- areg A B Control1 Control2 i.years, absorb(firms), if …
I suspect B and the error terms (u) are correlated – therefore I perform a 2SLS regression; as follows:
- ivregress 2sls A Control1 Control2 (B=C), first
As I need to have the code with fix effects – I wrote it as follows:
- ivregress 2sls A Control1 Control2 i.years (B=C), first
My question – Is there a way to write it with TWO WAY fix effect? (years & firms; currently it is with only one fix effect) and how?; or the way I wrote it here (in #3) is OK.
Many thanks,
Doron
Comment