正在加载图片...
*verybasicspss.SPS-SPSS Syntax Editor ▣x File Edit View Data Transform Analyze Graphs Utilities Run Add-ons Window Help 公日凸回物◆国昼: % ■层+ Active: DataSet1 data list fixed file='[Specify your working directory]w Run Current fix gss93subset.dat' id 1-4 wrkstat 5 marital 6 agewed 7-8 sibs 9-10 childs 11 age 12-13. Run current command SPSS Processor is ready In 52 Col 1 Now,let's execute our commands.First,highlight them,then to run the highlighted part,hit the Run Current button or alternatively hit Ctrl+R keys.When you run the above command, another Data Editor window should open for this new data.But what did you get there? You should be seeing a blank spreadsheet under the"*Untitled4 []"heading,although from the Variable View it looks like SPSS seems to have variable information.Why aren't we seeing the data itself? To read the data,we need to run another command to actually use this data(because to use this data,SPSS needs to read it!).Get back to your Syntax Editor,and first make sure we are working on this data set. This pull-down menu verybasicspss.SPS-SPSS Syntax Editor indicates your active data source. File Edit View Data Iransform Analyze Graphs Utilities Run Add-ons 卫p 公昌马四。→□兰岳:4色●%■, Active:Unnamed When you have multiple data files open at the same time,you need to tell SPSS which data file you are working on (which is called "Active"file).You can make your file active by simply clicking anywhere in the Data Editor window of the data you want to use(in this case, *Untitled4[),or when you have your Syntax Editor open,you can use the pull-down menu(in this case,it should be set to "Unnamed"since"*Untitled4 []"is neither saved nor named). Once you make sure"*Untitled4 []"is active,type in the following command(don't forget a comma),highlight and run it. list. Now,what do you have in your Data Editor and Output Viewer?You should now be seeing the data content in the Editor,and the command LIST is executed and the result is in the Output Viewer The point is this:SPSS just keeps it in its memory and does not read the data until it needs to, because that's efficient in terms of processing.In this example,SPSS encounters the procedural command LIST,realizes it needs the data"*Untitled4 []"to execute LIST and produce results on that data,and only at that moment does it read in the data. 8Now, let’s execute our commands. First, highlight them, then to run the highlighted part, hit the Run Current button or alternatively hit Ctrl + R keys. When you run the above command, another Data Editor window should open for this new data. But what did you get there? You should be seeing a blank spreadsheet under the “*Untitled4 []” heading, although from the Variable View it looks like SPSS seems to have variable information. Why aren’t we seeing the data itself? To read the data, we need to run another command to actually use this data (because to use this data, SPSS needs to read it!). Get back to your Syntax Editor, and first make sure we are working on this data set. This pull-down menu indicates your active data source. When you have multiple data files open at the same time, you need to tell SPSS which data file you are working on (which is called “Active” file). You can make your file active by simply clicking anywhere in the Data Editor window of the data you want to use (in this case, “*Untitled4 []”), or when you have your Syntax Editor open, you can use the pull-down menu (in this case, it should be set to “Unnamed” since “*Untitled4 []” is neither saved nor named). Once you make sure “*Untitled4 []” is active, type in the following command (don’t forget a comma), highlight and run it. list. Now, what do you have in your Data Editor and Output Viewer? You should now be seeing the data content in the Editor, and the command LIST is executed and the result is in the Output Viewer. The point is this: SPSS just keeps it in its memory and does not read the data until it needs to, because that’s efficient in terms of processing. In this example, SPSS encounters the procedural command LIST, realizes it needs the data “*Untitled4 []” to execute LIST and produce results on that data, and only at that moment does it read in the data. 8
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有