Dear all,
I have a problem with my stata commands. I am estimating the effect of a gender wage gap in different sectors on female sector employment. Now I analyze 14 OECD countries and 12 sectors over 8 years. I start with the following commands in stata:
egen Country_Sector=group(Country Sector)
encode year, gen(time)
xtset Country_Sector time
Now my original equation is xtreg + employment + wagegap + controls i.time, fe vce(r)
Now I received some feedback that I should do the following; Later in your results, I see you add sector-country FE (not sector and country FE – that would be two different sets of FE). I would also suggest to add sector-year FE. And cluster standard errors at the country level.
Im wondering how my stata regression should look like when I want to estimate country and sector FE separately should it look like this:
xtreg + employment + wagegap + controls i.year i.country i.sector, cluster(country) ?
Her second suggestion to include sector-year FE should it then look like this?
egen Sector_Year=group(Sector year)
xtreg + employment + wagegap + controls i.Sector year, fe vce(r) ?
I hope someone can help me out thanks in advance
Kind regards Joris
Related Posts with Problems with country sector fixed effects
Pearson correlation matrix with multiple significance starsHi Statalisters, I'm trying to present Pearson's correlation matrix with significance stars at leve…
Why the enhanced module of lclogit (lclogit2) does not converge?Dears I am estimating latent class models and i have some problems with the command lclogit2. Appar…
Percentage in bar graphHello everyone. I am trying to create a bar chart which evaluates the labor market participation by…
Insignificant F statistics, R square approximately equal to 0. Insignficant t statisticsDear Stata list members Advance apologies for asking a naive question. I conducted an analysis to c…
how to make a descriptive statistics like the picture (including Jarque‐Bera test for normality) and output the result"sum,de" did not include Jarque‐Bera test for normality, and how to use the panel data to achieve th…
Subscribe to:
Post Comments (Atom)
0 Response to Problems with country sector fixed effects
Post a Comment