Path: janda.org/c10 > Syllabus > Outline > Topics and Readings > Computers in Research > Creating an SPSS File
|
|||
You already entered a small number of cases on 10 American states in your mydata.sps file on hardin. |
|||
hardin(kjanda) 43% doit |
|||
Again, you will be asked to provide a
name for the "syntax" file. You want to reply mydata
to retrieve the file that you created last time. |
|||
Name of SPSS syntax file? mydata |
|||
|
|||
C10 doit - Wednesday 09/24/97 15:32:14 |
|||
You want to add SPSS commands to
your raw data, so you want to choose option 1 and re-enter
qedit anyway: |
|||
Enter your choice: 1 |
|||
After you press RETURN, you will see your own data set of ten states on the screen. You must provide SPSS commands to the computer to process these data. Ultimately, you will have to learn how to use SPSS commands. This time, I list the necessary commands below: |
|||
DATA LIST RECORDS=1
|
|||
The data line for your first state should follow the command BEGIN DATA. |
|||
If your file looks roughly like this (except that
your 10 states will differ), it's probably right! |
|||
|
|||
Immediately on leaving qedit you will return to control of doit and see the menu again: |
|||
|
|||
Process the SPSS commands and your data on states with
the help of qedit by choosing option 2: |
|||
|
|||
The following line indicates that your job ran
successfully. |
|||
End of job: 15 command lines 0 errors 0 warnings 0 CPU seconds |
|||
To check, choose option 3, "Display results" |
|||
|
|||
mydata.lst (34%) |
<----Press the space bar to see more; the above is only a partial listing that fits on one screen |
||
After you reach the end of the listing, you return to the doit menu. You want to print the results, so choose option 4: |
|||
|
|||
Choose 8 on the doit menu to quit. Then logout. You are finished with the assignment. Pick up your output (or copy the screen to your own computer and print it out on your own printer) and bring it to class. |