Hi all,
I am new to STATA and I am really struggling with my research now. Can someone help me to look at my questions?
My data looks like this:
Firm female size leverage year15 year industry country
1 1 7.6 2.1 0 2014 2 1
1 0 8.0 2.5 1 2015 2 1
1 0 7.7 2.2 1 2016 2 1
2 0 3.6 1.2 0 2013 5 2
2 0 3.1 1.5 0 2014 5 2
3 1 5.6 3.1 0 2014 8 3
3 1 5.8 3.4 1 2015 8 3
My dependent variable (y) is a dummy variable that is 1 if the CEO is a female and 0 if male. I have firm size, leverage, year15 (dummy variable that is 1 if the year is in or after 2015, and 0 otherwise), year, industry, and country (the study is international based so it has various countries. I code China as country 1 and U.S. as country 2 and Canada as country 3).
My questions are:
Xtprobit female size leverage year15 i.industry i.year i.country, fe
Or
Xtset industry country year
Xtprobit female size leverage year15 i.industry i.year i.country, fe
Or
Xtset industry country year
Xtprobit female size leverage year15, fe
Which one is right? If none of them is right, can someone tell me how to do the year, industry and country fixed effects?
Regards.
THANK YOU.
I am new to STATA and I am really struggling with my research now. Can someone help me to look at my questions?
My data looks like this:
Firm female size leverage year15 year industry country
1 1 7.6 2.1 0 2014 2 1
1 0 8.0 2.5 1 2015 2 1
1 0 7.7 2.2 1 2016 2 1
2 0 3.6 1.2 0 2013 5 2
2 0 3.1 1.5 0 2014 5 2
3 1 5.6 3.1 0 2014 8 3
3 1 5.8 3.4 1 2015 8 3
My dependent variable (y) is a dummy variable that is 1 if the CEO is a female and 0 if male. I have firm size, leverage, year15 (dummy variable that is 1 if the year is in or after 2015, and 0 otherwise), year, industry, and country (the study is international based so it has various countries. I code China as country 1 and U.S. as country 2 and Canada as country 3).
My questions are:
- I want to run a probit/logit model to determine what factors are related with the CEO gender. Should I use probit or logit (I have about 1,000 observations)
- The data is a panel data (3 firms over 4 years from year 2013 to year 2016) and is sorted based on firm and year. But how can I control for year fixed effect, industry fixed effect and country fixed effect? Should I put:
Xtprobit female size leverage year15 i.industry i.year i.country, fe
Or
Xtset industry country year
Xtprobit female size leverage year15 i.industry i.year i.country, fe
Or
Xtset industry country year
Xtprobit female size leverage year15, fe
Which one is right? If none of them is right, can someone tell me how to do the year, industry and country fixed effects?
- Related with question 2, I read online that there is no fixed effect model for probit regression. Does that mean I can only use probit fixed effect as shown in question 2?
- The last question is, since I have a dummy variable, year15, which is 1 for year 2015 and 2016, and 0 for year 2013 and 2014. Can I or should I still have the year fixed effect? Or I just should use industry and country fixed effects?
Regards.
THANK YOU.
Comment