Announcement

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

  • Question on oaxaca_rif

    I have a problem with the command oaxaca_rif.

    When I run the following code, it works well:
    oaxaca_rif outstand_liability own edu employ has_ccard has_overdraft wealth income (type:normalize(dtype_*)) (Country:normalize(dcountry_*)) [pweight=weight],rif(gini) relax by(APP) swap w(1)

    But if I add cluster, there report an error:
    oaxaca_rif outstand_liability own edu employ has_ccard has_overdraft wealth income (type:normalize(dtype_*)) (Country:normalize(dcountry_*)) [pweight=weight],rif(gini) relax by(APP) swap w(1) cluster(id)

    non ambiguous abbreviation
    r(111);

    It is very strange because I do not have any variable named "non". And previously (maybe one year ago) the line with cluster worked, but then now the same code is not working.

    I have downloaded the latest version of "rif" package and I am using STATA SE 16.

    Does anyone have any clues why this could happen? Many thanks in advance for the help!!

  • #2
    I cannot reproduce the error
    do you think you can make a reproducible example that I can check out?

    Thank you

    Comment


    • #3
      Dear Fernando,

      Thanks for your reply. Something magic happened.

      I was trying to create a sub-dataset for you, so I took only those variables used in this regression out from the original dataset (with several hundred variables). And I run the same code for this very small dataset (less than 50 variables). The code with "cluster" works perfectly! But if I go back to my original huge dataset, the same code still reports the same error.

      I could not find the reason...But anyway, now I can use this subset to generate the results I want. So, problem solved!

      Many thanks again!

      Best,
      Ying

      Originally posted by FernandoRios View Post
      I cannot reproduce the error
      do you think you can make a reproducible example that I can check out?

      Thank you

      Comment

      Working...
      X