Software: Search: Software for Exploring Data Structure: Search Documentation

Stata User Supplement

Running Search in Stata

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

  1. Download and install Srclib as described in the Search Installation Guide.
  2. Prepare the input dataset. For the example, this is done in the search_example.do file from the insheet statement through the save statement.
    screenshot of search_example.do file from the insheet statement through the save statement
  3. Using the Stata do-file editor or another text editor, create the Search setup file.
    screenshot of creating a Search setup file
  4. Save the Search setup file.
    screenshot of saving the Search setup file
  5. 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.
    screenshot of setting the srclib macro
  6. Check the list file.
    screenshot of checking the list file

Last updated 16 September 2013