observation for Student 24 appears as a blank in this data editor. The sequencing of these steps and the associated screens follow : William. E. Becker Module One, Part Two: Using LIMDEP Sept. 15, 2008: p. 5
William. E. Becker Module One, Part Two: Using LIMDEP Sept. 15, 2008: p. 6
William. E. Becker Module One, Part Two: Using LIMDEP Sept. 15, 2008: p. 7
READING SPACE DELINEATED TEXT FILES INTO LIMDEP Next we consider externally created text files that are typically accompanied by the “.txt” or “.prn” extensions. For demonstration purposes, the data set we just employed with 24 observations on the 7 variables (“student,” “post,” “pre,” “class1,” “class2,” “class3,” and “class4”) was saved as the space delineated text file “post-pre.txt.” After downloading this file to your hard drive open LIMDEP to its first screen: To read the file “post-pre.txt,” begin by clicking “File” in the upper left-hand corner of the ribbon, which will yield the following screen display: William. E. Becker Module One, Part Two: Using LIMDEP Sept. 15, 2008: p. 8
Click on “OK” to “Text/Command Document” to create a file into which all your commands will go. William. E. Becker Module One, Part Two: Using LIMDEP Sept. 15, 2008: p. 9
The “read” command is typed or copied into the “Untitled” command file, with all subparts of a command separated with semicolons (;). The program is not case sensitive; thus, upper and lower case letters can be used interchangeably. The read command includes the number of variables or columns to be read (nvar= ), the number of records or observations for each variable (nobs= ), and the place to find the file (File= ). Because the names of the variables are on the first row of the file to be read, we tell this to LIMDEP with the Names=1 command. If the file path is long and involves spaces (as it is here, but your path will depend on where you placed your file), then quote marks are required around the path. The $ indicates the end of the command. Read;NVAR=7;NOBS=24;Names=1;File= William. E. Becker Module One, Part Two: Using LIMDEP Sept. 15, 2008: p. 10
"C:\Documents and Settings\beckerw\My Documents\WKPAPERS\NCEE - econometrics \Module One\post-pre.txt"$ Upon copying or typing this read command into the command file and highlighting the entire three lines, the screen display appears as below and the “Go” button is pressed to run the command. LIMDEP tells the user that it has attempted the command with the appearance of William. E. Becker Module One, Part Two: Using LIMDEP Sept. 15, 2008: p. 11
To check on the correct reading of the data, click the “Activate Data Editor” button, which is second from the right on the tool bar or go to Data Editor in the Window’s menu. Notice that if you use the Window’s menus, there are now four files open within Limdep: Untitled Project 1*, Untitled 1*, Output 1*, and Data Editor. As you already know, Untitled 1 contains your read command and Untitled Project is just information in the opening LIMDEP screen. Output contains the commands that LIMDEP has attempted, which so far only includes the read command. This output file could have also been accessed by clicking on the view square next to the X box in the following rectangle
You've reached the end of your free preview.
Want to read all 40 pages?
- Spring '18
- Dr. Moez
- Regression Analysis, LIMDEP