Announcement

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

  • Mata command not found

    Hi all,

    I am using the "two_side" user written package - open source from https://www.princeton.edu/~honore/stata/ - as part of a replication project of the Bazzi (2017) AER paper.

    The two_side.ado contains a line "mata: two_sidemata("`varlist'","`touse'",`estmet',`print details', `boots')" which prompts the following error message from my STATA (MP18) when the script tries to run the two_side command

    "<istmt>: 3499 two_sidemata() not found
    r(3499)".

    I have all three "two_side.ado, two_side.shlp, and ltwo_side.mil" in the relevant ado folder, as well as having the relevant ado folder stored as an adopath. I am not sure where this issue may be coming from and am not very familiar with STATA's mata language.

    Thanks in advance for any help!

  • #2
    Originally posted by Guillaume Pousse View Post
    I have all three "two_side.ado, two_side.shlp, and ltwo_side.mil" in the relevant ado folder . . .
    According to the help files, a Mata library must have the file name suffix of .mlib.

    Try renaming the file ltwo_side.mil to ltwo_side.mlib and see whether that helps.

    Comment


    • #3
      Also, try

      Code:
      mata : mata mlib index
      before running the command.

      Comment

      Working...
      X