Announcement

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

  • Stata 18 error message in bysort egen

    Hi everyone,

    This below command used to work normally in Stata 17:

    bysort country period: egen correlation=corr(var1 var2)

    On Stata 18, it displays this error message: "unknown egen function corr()".

    The same issue exists if I use var as a function (instead of corr in the above code).

    I would be grateful if you could advise.

    Many thanks in advance.

    Jala


    Edit: Apologies I found a solution with egenmore using ssc install. Thanks.
    Last edited by Jala Youssef; 16 Nov 2023, 13:05.

  • #2
    the corr() function is part of the user-written -egenmore- package; it sounds like either you got a new machine and did not install this or that it appears someplace where Stata can't find it

    Comment

    Working...
    X