statistics - Using Python to run SPSS analyses and retrieve values (Python -> Spss -> Python) -


I have spent a few days of SPSS and spaceoffs module - which are great resources. Although I think I have not got some conceptual understanding because I can do basic things like recovering value labels via Spiceux. ; & Gt; {U'1 ': u'Niutral', u'0 ': u'Disagree', u'2 ': u'Agree'}

or

  dataset = spssDataset () variable_list = dataet.varList print variable_list [2] .valueLabels.data & gt; & Gt; & Gt; However, I am struggling to find out how to get value for real data. I 

I am having trouble analyzing how to recover the analyzers' values ​​and use them in Python Please. Right now I am running an analysis using spss.Submit (), but I suspect that this feeding value is limited to feed back the meaning and significance values ​​for Python (i.e., which is again used in Python Can be judgments).

If you have any suggestions for ideas, please note that I need to work within the Python environment because this data retrieval / analysis is included in a comprehensive Pyramid program.

> Thanks!

SPSS. The cursor class is a low level class that is hard to use. The SPSDATASSSS class provides a very friendly interface. You can also use the spss.Dataset class, which was created after sposdata and has additional capabilities but is slower.

To retrieve the viewer's output, the basic workhorse is writing the OMS on the XML workspace or the new dataset. You can use some functions in the spssaux module that wrap it. CreateDatasetOuput simplifies making datasets from tables. Use the CreateXmlOutput and companion getValuesFromXmlWorkspace xml workspace. Under the latter, SPSS. EvilActpath API lets you leave any output you want from the table.

In addition, if you are basically living in a Python world, have you searched external mode? This allows you to run data from an external Python program. You can use your Python IDE to work interactively in Python code and debug. You simply import the SPSS module and use anything provided if you need it, and whatever is needed. In outer mode, however, there is no viewer, so you can not use SPSSClient module API.


Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -