I've written the syntax below and all is well except that I would like the columns of the product matrix PROD, namely Z1, Z2, and Z3, to be written in
the active data set. When I run this code, a new data editor window opens
with Z1, Z2, and Z3.
Is there a solution that doesn't involve cutting and pasting?
Thanks, Matt
With the active data set containing the variables X1, X2, and X3...
MATRIX.
GET X / VARIABLES = X1, X2, X3.
COMPUTE U = {.65, .09, -.76; .51, .8, .33; .57, -.59, .56}.
COMPUTE PROD = X * U.
SAVE PROD / OUTFILE = * / VARIABLES = Z1, Z2, Z3.
END MATRIX.
=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD