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
Sample size calculation (general and relation to mixed linear model)Dear Statalisters I have a question that I hope you can help me with. I have searched the forums, …
count categorical values by using conditions row wiseHi, I have a a dataset such as below input str3(A B C) str3(X Y Z) Yes No No Yes No No No No No Yes…
Query on "characteristic contents too long" errorDear Statalisters, I am employing a partial linear regression model (plreg) in a cross-sectional co…
Issue about Counting Time Spans Sorted by Specific VariablesHi Statalisters, I have such a sample dataset and want to count the year span sorted by specific va…
Generate table or data set containing test results from -signtest-Hi I am currently having problems with how to efficiently store test results that I obtain from runn…
Subscribe to:
Post Comments (Atom)
0 Response to Stata Regression Help Using Fixed Effects and Cluster of Standard Errors
Post a Comment