|
At 10:19 AM 1/22/2007, Marshaun Glover wrote:
>Is there any syntax I can use to find out exactly how the variable was
>computed?
I'm afraid the answer is, no; and there couldn't be, unless SPSS kept
the transformation syntax as well as executing it. (Jon Peck has
developed some Python code that, as I understand it, stores the
transformation code as a variable attribute as well as executing it.
But that won't help except for transformations written using that
module.)
That leaves you with making educated guesses, and checking them. The
most important guess is what variable or variables the derived variable
was computed from. If you know the meaning of the derived variable,
that usually constrains the source variables pretty narrowly.
Then compare the putative source variables with the computed variable,
for example by
. Scatterplot, if both are continuous
. Crosstab, if both are categorical (or discrete ordinal)
. MEANS or the like, if the source is continuous and the derived
variable categorical. Use MIN and MAX statistics, which may give you
the RECODE, or equivalent, that was used.
No magic. You may or may not be able to solve your problem this way,
though the odds are fairly good if you know the intended meaning of
your derived variable of all possible source variables, and the source
variables are in your dataset. If any of those don't apply, and the
dataset isn't documented, you're probably stuck. (That gives you a
right, however, to yell at the creator of the dataset, pretty much as
loudly as you please.)
-Good luck,
Richard
|