This post just to explain how to install a user written mata function.
You have to follow a very simple procedure:

  1. Make a copy of the function_name.mata file in your personal ADO directory;
  2. Compile the updated source code:
  3. do 'your PERSONAL dir path'/function_name.mata

  4. Save the compiled source in a .mo file in your personal directory:
  5. mata: mata mosave function_name(), dir(PERSONAL)

  6. The function is actually part of your official Mata.



Print Friendly, PDF & Email