Date: Thu, 22 Jul 2010 06:47:04 -0600
Reply-To: Jon K Peck <firstname.lastname@example.org>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Jon K Peck <email@example.com>
Subject: Re: Can OMS catch HETCOR output?
SPSS, an IBM Company
Ruben van den Berg <firstname.lastname@example.org>
07/22/2010 05:54 AM
[SPSSX-L] Can OMS catch HETCOR output?
"SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
I was trying to create a dataset consisting of polychoric correlations
with the following syntax.
DATASET DECLARE @cor.
/IF COMMANDS=['Heterogeneous Correlation'] SUBTYPES=['Correlations']
/DESTINATION FORMAT=SAV NUMBERED=TableNumber_
SPSSINC HETCOR v2 v3 v4 v5 v6 v7 v8
/OPTIONS ESTIMATOR=twostep STDERR=TRUE
However, I end up with an empty dataset. My guess (and I hope I'm wrong):
everything OMS can catch has been built into OMS and since HETCOR is an
extension, it hasn't been built into OMS.
>>>Not so. OMS is designed to catch everything specified by the
selectors. You just need to specify the right OMS command identifier and
table type. (In this case you could just omit the command identifier,
since the subtype alone would pick out what you want.)
You can find these items by right clicking in the outline on the item of
interest. In this case you will find that the command type is 'SPSSINC
HETCOR', and the table type is 'HeterogeneousCorrelations'. You don't see
these items in the OMS Identifiers dialog or the OMS Control Panel,
because those lists are predefined.
If so, then could Python spssaux.GetValuesFromXMLWorkspace 'grab' the
correlation matrix? Or does it use OMS 'underneath the surface' in order
to get such values? If so, is there any other not-extremely-unelegant way
(Output Export to EXCEL?) to get my correlations out of the viewer and
into a .sav file? Eventually, I want to run a PCA on them.
Programmability uses the OMS mechanism to capture output items. OUTPUT
EXPORT provides another way to capture tables from the Viewer, but that
will be more roundabout and is slower.
Ruben van den Berg
Consultant Models & Methods
Mobiel: +31 6 24641435
Telefoon: +31 20 522 5738
Express yourself instantly with MSN Messenger! MSN Messenger