Running Search in Stata

Following are the steps needed to run Search in Stata using the Search example.

  1. Create the srclib directory in Linux or Windows.
  2. Copy the search_stata_pclinux64.tgz or Windows search_stata_windows.zip file into the srclib directory and unzip it.
  3. Prepare the input dataset. For the example, this is done in the search_example.do file from the insheet statement through the save statement.

  4. Using the Stata do-file editor or another text editor, create the Search setup file.

  5. Save the Search setup file.

  6. Set the srclib macro, if the srclib directory is different from the working directory, the dir global macro, if the project directory is different from the working directory, and the name global macro, and run Search.

  7. Check the list file.

Last updated 16 September 2013