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.
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.
Comment