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
time series regressions for a portfolioDear all For a project we have to use performance regression to estimate whether a portfolio delive…
MFX table logit commandHi all, I'm fairly new to Stata since I need it to write my bachelor thesis. However I'm stuck... I…
Create a new variable based on a date string variable yyyy-mm-dd and a numeric variable (yyyymmdd)Hi! I am very new to STATA. I have seen you answer different questions regarding date-variables. Ho…
Setting version, seed, and sortseed not sufficient for reproducibility?The following code appears to produce different results depending on the Stata 16.1 edition I use. …
Problems creating a single variable that represents the different conditions of my experimentHi all, For my Master thesis, I used Qualtrics for an online experiment and within this experiment …
Subscribe to:
Post Comments (Atom)
0 Response to Problems with country sector fixed effects
Post a Comment