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
How to replace the value of a variable by the most frequently occured valueHi, I have a dataset looks like this: Code: * Example generated by -dataex-. To install: ssc inst…
endogeneity test after xtologit and xtoprobitHi all, please I need help with testing for endogeneity after xtologit and xtoprobit. Firstly, how d…
Find number of children, age at birth for women using identifiersHi: I am working with a dataset that looks something like this: HHID PID MID Rel_Head Age 10 1 3 1…
Sensitivity analysis following mediation with suregGreetings, I'm running Stata 15.1 on a Mac OS and working with experimental data. I've been conduct…
error using svy bootstrap with self-written programDear list, I want to calculate bootstrapped standard error (and pvalue) of the difference between t…
Subscribe to:
Post Comments (Atom)
0 Response to Stata Regression Help Using Fixed Effects and Cluster of Standard Errors
Post a Comment