Skip to content
This repository has been archived by the owner on Aug 26, 2024. It is now read-only.

Mata function name causes command to fail to load in Stata 17 #25

Open
dj866 opened this issue May 19, 2021 · 0 comments
Open

Mata function name causes command to fail to load in Stata 17 #25

dj866 opened this issue May 19, 2021 · 0 comments

Comments

@dj866
Copy link

dj866 commented May 19, 2021

With the recent Stata 17 update, the command now gives the following error:

st_sortlist() is built-in
(233 lines skipped)
(error occurred while loading readreplace.ado)
r(3000);

Looking at the ado, the issue is that "st_sortlist()" now appears to be a function within Stata (although it still does not appear in the Stata help file for Mata), so simply changing the name of this function allows the command to run correctly. I simply replaced all references to "st_sortlist()" with "st_sortname" and this seemed to fix the problem.

Not a Mata expert, so someone with more knowledge of the command should probably double check my work. Here it is

readreplace.ado.zip

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant