I am not a pro on Stata but need to use it for a research paper in Finance for my degree.
I am trying to use the xtile() fonction :
* quartiles
egen xquartile = xtile(x), n(4)
gen xq1=0 if xquartile!=.
But when I use it, the error message appears:
. egen xquartile = xtile(x), n(4)
unknown egen function xtile()
r(133);
I have been searching on the forum for two hours, and found nothing that really works for me. I saw that I was supposed to use
ssc inst egenmore
Which seems to be a package containing the function, but when I wrote that line in my code, it returned an error message telling me I already had egenmore.
I also tried to use gen instead of egen but I did not work either (not surprisingly, as gen is used for simpler calculations)...
I am a bit lost, and coding isn't my cup of tea... I would be very grateful for any help I can get !!
Thank you very much

0 Response to egen function xtile() not found even with egenmore installed
Post a Comment