Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • rifreg and oaxaca8 error


    In order to analyze gender wage gap, the following is conducted.
    However, It is impossible to proceed because of the "oaxaca already defined"
    Who can help me with this problem?

    -------------------------------------------------------------------------------------------------------------------------------------------------
    xi: rifreg lnwage age whour i.edu i.union i.married i.fsize tenure if gender==0, quantile(0.5) w(0.06) retain(rif_m50)
    estimates store male_wage
    xi: rifreg lnwage age whour i.edu i.union i.married i.fsize tenure if gender==1, quantile(0.5) w(0.06) retain(rif_f50)
    estimates store female_wage
    oaxaca8 male_wage female_wage
    --------------------------------------------------------------------------------------------------------------------------------------------------
    oaxaca already defined
    (error occurred while loading oaxaca8.ado)





  • #2
    Hi Jang
    may I suggest for you to look into the new wrapper program oaxaca_rif. It implements the rif OB decomposition with or without reweighting, and can easily be used for estimating bootstrapped std errors.
    It requires the latest oaxaca command from ssc
    for your example it will be something like
    Code:
    oaxaca_rif lnwage age i.union, by(gender) rif(q(50))
    There are a few other examples in the help file
    Fernando
    Last edited by FernandoRios; 15 Jan 2019, 03:55.

    Comment

    Working...
    X