Dear ALL
In practice, I have data for 3 years 2000, 2010, 2020. I would like to get the detailed decomposition of the gender wage gap across 3 years. I also want to put the male wage distribution of the middle year (i.e. 2010) as the counterfactual wage distribution. While doing the research, I find the xtoaxaca and dfl command in stata very useful to address my question. However, it is my first time to know the xtoaxaca, so when I run the code xtoaxaca, I find the code is wrong
I wonder how I can get it right.
Looking forward to get some help.
Many thanks
In practice, I have data for 3 years 2000, 2010, 2020. I would like to get the detailed decomposition of the gender wage gap across 3 years. I also want to put the male wage distribution of the middle year (i.e. 2010) as the counterfactual wage distribution. While doing the research, I find the xtoaxaca and dfl command in stata very useful to address my question. However, it is my first time to know the xtoaxaca, so when I run the code xtoaxaca, I find the code is wrong
Code:
reg logwage age education female i.year, r est sto m1 xtoaxaca age education, groupvar(female) groupcate (0 1) timevar(year) times(2000 2010 2020) model(m1) timeref(2010) change(mpjd) noisily forcesample
Code:
[ Progress ] Calculating mean outcomes ... [ Progress ] Calculating coefficients ... [ Progress ] Running level decomposition ... (xtoaxaca_mata_levels() in lxtoaxaca, compiled by Stata 16.1, is too new to be run by this version of Stata and so was ignored) <istmt>: 3499 xtoaxaca_mata_levels() not found r(3499);
Looking forward to get some help.
Many thanks
Comment