Announcement

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

  • unknown egen function xtile()

    Hi there;

    I tried to create quantiles on a dataset using egen and xtiles. Below is the code and error message returned.

    Code:
    . egen meantempQ3 = xtile(meantemp), p(33(33)67) by(stratum)
    unknown egen function xtile()
    After reading this post and this post I ran this:

    Code:
    . which xtile, all
    
    /Applications/Stata/ado/base/x/xtile.ado
    *! version 3.1.8  16feb2015
    and this:

    Code:
    . adopath
      [1]  (BASE)      "/Applications/Stata/ado/base/"
      [2]  (SITE)      "/Applications/Stata/ado/site/"
      [3]              "."
      [4]  (PERSONAL)  "/Users/emma/Library/Application Support/Stata/ado/personal/"
      [5]  (PLUS)      "/Users/emma/Library/Application Support/Stata/ado/plus/"
      [6]  (OLDPLACE)  "~/ado/"
    Any help, insight, or clues as to why the above error message would be appreciated. I'm using stata 15.

    Many thanks, Emma

  • #2
    The search for xtile's code is not what is needed as the source code for any egen function foobar() would be in _gfoobar.ado although I don't know anyone is expected to know that unless they found it out for themselves.

    You need to install using

    Code:
    ssc inst egenmore

    Comment


    • #3
      Thank you!!

      Comment


      • #4
        Note that

        Code:
        search xtile egen
        does point in the right direction.

        Comment

        Working...
        X