I'm using Stata 19 on Windows 11. My dataset has 53,525 observations and 152 variables.
I'm running an Oaxaca decomposition of gender gap in agriculture.
Some variables of interest are groups of mutually exclusive dummy variables, for which I would like to use the normalize() option: more specifically (see code below), this concerns variables (ote_dum1-otedum8) (y2019-2023) (montagna collina pianura)
When using the oaxaca command (Jann, 2008) the normalize option works smoothly, I get the results with the normalized variables coefficients.
On the contrary, when using oaxaca_rif (Rios-Avila, Stata Journal 202) estimation is not performed and I receive:
variable normalize not found
r(111);
This sounds strange, as in the Rios-Avila article he says "The option normalize() and aggregation of subset of variables using the syntax ( name: varlist) are also possible".
Thank you for any hint on where is the problem.
Here is the code
I'm running an Oaxaca decomposition of gender gap in agriculture.
Some variables of interest are groups of mutually exclusive dummy variables, for which I would like to use the normalize() option: more specifically (see code below), this concerns variables (ote_dum1-otedum8) (y2019-2023) (montagna collina pianura)
When using the oaxaca command (Jann, 2008) the normalize option works smoothly, I get the results with the normalized variables coefficients.
On the contrary, when using oaxaca_rif (Rios-Avila, Stata Journal 202) estimation is not performed and I receive:
variable normalize not found
r(111);
This sounds strange, as in the Rios-Avila article he says "The option normalize() and aggregation of subset of variables using the syntax ( name: varlist) are also possible".
Thank you for any hint on where is the problem.
Here is the code
Code:
oaxaca log_rt_az_real log_capfond_real no_capfondiario log_cap_ag_fiss_real no_capagrar_fisso // log_cap_agr_c_real no_capagrar_circol log_ore_sal no_oresalariate log_ore_fam inherited // anni_stud eta eta2 zsva_d sau_irr_perc bio normalize(ote_dum1 ote_dum2 ote_dum3 ote_dum4// ote_dum5 ote_dum6 ote_dum7 ote_dum8) normalize(montagna collina pianura) Abruzzo Alto_Adige// Basilicata Calabria Campania Emilia_Romagna Friuli_VG Lazio Liguria Lombardia Marche Molise // Puglia Sardegna Sicilia Toscana Trentino Umbria Valle_Aosta Veneto normalize(y2019 y2020 y2021// y2022 y2023) , by (fem) vce (robust) noisily relax oaxaca_rif log_rt_az_real log_capfond_real no_capfondiario log_cap_ag_fiss_real no_capagrar_fisso // log_cap_agr_c_real no_capagrar_circol log_ore_sal no_oresalariate log_ore_fam inherited // anni_stud eta eta2 zsva_d sau_irr_perc bio normalize(ote_dum1 ote_dum2 ote_dum3 ote_dum4 // ote_dum5 ote_dum6 ote_dum7 ote_dum8) normalize(montagna collina pianura) Abruzzo Alto_Adige// Basilicata Calabria Campania Emilia_Romagna Friuli_VG Lazio Liguria Lombardia Marche Molise // Puglia Sardegna Sicilia Toscana Trentino Umbria Valle_Aosta Veneto normalize(y2019 y2020 y2021 // y2022 y2023), by (fem) rif(q (.25)) noisily relax

Comment