没有合适的资源?快使用搜索试试~ 我知道了~
首页SPSS中python如何应用教程
资源详情
资源评论
资源推荐

i
Python Scripting Guide for IBM SPSS
Statistics

Note: Before using this information and the product it supports, read the general information
under Notices on p. 209.
This edition applies to IBM® SPSS ® Statistics 21 and to all subsequent releases and modifications
until otherwise indicated in new editions.
Adobe product screenshot(s) reprinted with permission from Adobe Systems Incorporated.
Microsoft p roduct screenshot(s) reprinted with permission from Microsoft Corporation.
Licensed Materials - Property of IBM
© C opyright IBM Corporation 1989, 2012.
U.S. Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP
Schedule Contract with IBM Corp.

Contents
1 Introduction to Python Scripts 1
WorkingwithMultipleVersionsofIBMSPSSStatistics ................................ 2
Class Hierarchy for Scripting Facility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
GettingStartedwithPythonScripts ............................................... 4
GettingStartedwithAutoscriptsinPython....................................... 5
RunningPythonScriptsfromPythonPrograms ................................... 6
2 SpssClient Class 9
CreateNewServerMethod...................................................... 9
ExitMethod .................................................................10
GetActiveDataDocMethod......................................................10
GetConfiguredServersMethod...................................................10
GetCurrentDirectoryMethod ....................................................10
GetCurrentServerMethod ......................................................10
GetDataDocumentsMethod.....................................................11
GetDefaultJCVersionMethod....................................................11
GetDefaultServerMethod.......................................................11
GetDesignatedOutputDocMethod ................................................11
GetDesignatedSyntaxDocMethod................................................12
GetExportOptionMethod .......................................................12
GetLocaleMethod............................................................12
GetLocalServerMethod........................................................12
GetOutputDocumentsMethod ...................................................12
GetPreferenceMethod.........................................................13
GetScriptContextMethod.......................................................13
GetSPSSOptionsMethod.......................................................13
GetSPSSPathMethod..........................................................14
GetSPSSVersionMethod.......................................................14
GetSyntaxDocumentsMethod ...................................................14
GetUIAlertsMethod...........................................................14
IsDataDocInUseMethod .......................................................15
IsDistributedMode............................................................15
IsOptionAvailableMethod.......................................................15
LogToViewerMethod..........................................................16
NewDataDocMethod..........................................................16
© Copyright IBM Corporation 1989, 2012.
iii

NewOutputDocMethod........................................................16
NewSyntaxDocMethod........................................................17
OpenDataDocMethod.........................................................17
OpenOutputDocMethod........................................................17
OpenSyntaxDocMethod........................................................18
RunSyntaxMethod............................................................18
SaveServersMethod..........................................................19
ScriptParameterMethod .......................................................20
SetCurrentDirectoryMethod.....................................................20
SetDefaultJCVersionMethod....................................................20
SetExportOptionMethod........................................................21
SetPreferenceMethod.........................................................21
SetUIAlertsMethod...........................................................21
StartClientMethod............................................................22
StopClientMethod............................................................22
_heartBeatMethod ...........................................................22
3 Datasets and Data Editor Windows 24
SpssDataDocClass ...........................................................24
CloseDocumentMethod ....................................................24
GetCaseCountMethod......................................................24
GetDatasetNameMethod ...................................................25
GetDataUIMethod.........................................................25
GetDocumentPathMethod ..................................................25
GetMenuTableMethod .....................................................25
GetVariableCountMethod...................................................25
IsActiveDataDocMethod....................................................26
IsEqualToMethod.........................................................26
IsModifiedMethod ........................................................26
IsPromptToSaveMethod....................................................26
SaveAsMethod...........................................................26
SetAsActiveDataDocMethod ................................................27
SetDatasetNameMethod ...................................................27
SetModifiedMethod.......................................................28
SetPromptToSaveMethod...................................................28
DataDocsListClass............................................................28
GetItemAtMethod.........................................................28
SizeMethod .............................................................29
iv

SpssDataUIClass.............................................................29
GetHeightMethod.........................................................29
GetLeftMethod...........................................................29
GetShowGridLinesMethod..................................................29
GetShowValueLabelsMethod................................................30
GetTitleTextMethod........................................................30
GetTopMethod...........................................................30
GetVisibleMethod.........................................................30
GetWidthMethod .........................................................30
GetWindowStateMethod ...................................................30
InvokeDialogMethod.......................................................31
PrintDataDocMethod......................................................31
SetHeightMethod.........................................................32
SetLeftMethod...........................................................32
SetShowGridLinesMethod ..................................................32
SetShowValueLabelsMethod ................................................32
SetTopMethod ...........................................................33
SetVisibleMethod.........................................................33
SetWidthMethod .........................................................33
SetWindowStateMethod....................................................33
4 Output Documents and Viewer Windows 35
SpssOutputDocClass..........................................................35
ClearSelectionMethod.....................................................36
CloseDocumentMethod ....................................................36
CopyMethod.............................................................36
CopySpecialMethod.......................................................36
CreateHeaderItemMethod ..................................................37
CreateImageChartItemMethod...............................................38
CreateTextItemMethod.....................................................38
CreateTitleItemMethod.....................................................39
CutMethod..............................................................39
DeleteMethod............................................................39
DemoteMethod...........................................................39
ExportChartsMethod.......................................................40
ExportDocumentMethod....................................................41
GetCurrentItemMethod.....................................................42
GetDocumentPathMethod ..................................................42
GetFooterTextMethod......................................................42
GetHeaderTextMethod.....................................................42
GetMenuTableMethod .....................................................42
GetOutputItemsMethod.....................................................43
v
剩余242页未读,继续阅读









安全验证
文档复制为VIP权益,开通VIP直接复制

评论1