Hi all,
I am looking to create a regression to determine the relationship between large increases in Cost-of-living and the number of divorces. My dependent is the natural log of the new number of divorces, and my dependent is a dummy variable where 1 is an inflation rate of anything greater than 3% and 0 is anything less than. My controls are the income of couples, population and the female labour force participation rate. My regression is in 10 Canadian Provinces, numbered 1 through 10 (instead of using province names) and from the years 1979-2003. I am looking to include fixed effects for both province and year but am not sure what code to use. I also want to cluster at the province level. Currently this is the code I have.
Code:
xtset Province Year
xtreg lnDivorces InflationTarget CouplesIncome Population FemaleLFPR i.Year , fe vce(cluster Province)
When I try to include i.Province, it says that it was omitted due to collinearity. Is my code correct, or how can I write it such that I include fixed effects for both province and year, as well as clustering the standard errors at the province level.
Thanks,
Paige
Related Posts with Stata Regression Help Using Fixed Effects and Cluster of Standard Errors
Using Putexcel for estat esizeDear All I have used the putexcel command to successfully export regression results to an excel she…
Creating unemployment rate for 50 states from IPUMS ACS dataset in multiple yearsI'm working on dataset and to make my causal effect free from any state fixed effects I need to crea…
Different Numbers Across An IdentifierHi Everyone, I have a dataset that has two variables: 1) An identifier denoted here as MRN. 2) Tes…
Why Stata Journal is not in ABDC Journal Quality List?Dear colleagues, Who can explain why the Stata Journal is not in the ABDC Journal Quality List? For…
Case-sensitivity in Windows 10/1803+The Microsoft Windows update 1803 has introduced case-sensitivity as a configurable option for Windo…
Subscribe to:
Post Comments (Atom)
0 Response to Stata Regression Help Using Fixed Effects and Cluster of Standard Errors
Post a Comment