Dear all,
I am using user written command oaxaca_rif by Rios-Avila 2020 based on FFL methodology (references below). I have many oaxaca_rif commands, and I use bootstrap st. errors with set seed option. My standard errors results differ slightly when I run from the begining do file, or when I run twice the same command in active do file.
I want that all my results are replicable regardless the do file is run from the begining or not. Even if I run the same do file from the begining twice results differ. I tried with set seed option before command and inside command.
Here is example:
bootstrap, reps(200) seed (10209): oaxaca_rif y $demo $emp , by(female) wgt(1) rif(mean)
bootstrap, reps(200) seed (10209): oaxaca_rif y $demo $emp , by(female) wgt(1) rif(q(10))
I want to have the same standard errors regardless I run first for mean or for q(10). Where should I put set seed option in order to produce results irrespective of the order?
I have data for two years, I run with and without reweighting, along the wage distribution, I run rifreg and oaxaca_rif.
Thank you in advance for your answer.
Rios-Avila, F. 2020. Recentered influence functions (RIFs) in Stata: RIF regression and RIF decomposition. Stata Journal, 20(1), 51-94. https://doi.org/10.1177/1536867X20909690.
Firpo, S. P., N. M. Fortin, and T. Lemieux. 2018. Decomposing wage distributions using recentered influence function regressions. Econometrics 6: 28.
https://doi.org/10.3390/econometrics6020028.
I am using user written command oaxaca_rif by Rios-Avila 2020 based on FFL methodology (references below). I have many oaxaca_rif commands, and I use bootstrap st. errors with set seed option. My standard errors results differ slightly when I run from the begining do file, or when I run twice the same command in active do file.
I want that all my results are replicable regardless the do file is run from the begining or not. Even if I run the same do file from the begining twice results differ. I tried with set seed option before command and inside command.
Here is example:
bootstrap, reps(200) seed (10209): oaxaca_rif y $demo $emp , by(female) wgt(1) rif(mean)
bootstrap, reps(200) seed (10209): oaxaca_rif y $demo $emp , by(female) wgt(1) rif(q(10))
I want to have the same standard errors regardless I run first for mean or for q(10). Where should I put set seed option in order to produce results irrespective of the order?
I have data for two years, I run with and without reweighting, along the wage distribution, I run rifreg and oaxaca_rif.
Thank you in advance for your answer.
Rios-Avila, F. 2020. Recentered influence functions (RIFs) in Stata: RIF regression and RIF decomposition. Stata Journal, 20(1), 51-94. https://doi.org/10.1177/1536867X20909690.
Firpo, S. P., N. M. Fortin, and T. Lemieux. 2018. Decomposing wage distributions using recentered influence function regressions. Econometrics 6: 28.
https://doi.org/10.3390/econometrics6020028.

Comment