Hi, all. I have syntax with separates a matrix into submatrices. I would like to label the submatrices within the matrix-end matrix structure without requiring a macro. Matrix=x. Submatrices = x1, x2, x3, etc. Kirill has a macro which does this, but I'd like
to be able to do it outside a macro. Any ideas?
Thanks.
Brian
=====================
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
|
I presume if you want to do it inside MATRIX and want to do it in an
automated way (i.e. you need a function taking arguments and doing
it) you will need a macro. If I'm not mistaken, a Python script
won't work inside MATRIX...
Unfortunately, MATRIX does not yet support collections of objects (variables), such as "let collection X be matrices with names X1, X2,...". If your submatrices have the same number of rows or columns you might prefer just to keep them as one matrix plus index vector(s) showing the beginning and/or the end positions of each submatrix. 29.09.2019 19:48, Dates, Brian пишет:
===================== 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 |
In reply to this post by bdates
Just to remind also that you can split the dataset (SPLIT FILE) and then
run your matrix routine via INSERT it. In this case, exactly the same MATRIX-END MATRIX session will run for each split subsample. ===================== 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 |
Thanks for the input, Kirill. Since I work almost exclusively in matrix, I was pretty sure I was dreaming. Any, the fix has been to make the solution of a larger macro in which I've embedded your variables. Thanks for the prompt reply yesterday.
Brian
From: SPSSX(r) Discussion <[hidden email]> on behalf of Kirill Orlov <[hidden email]>
Sent: Sunday, September 29, 2019 1:29 PM To: [hidden email] <[hidden email]> Subject: Re: Generating Multiple Matrices without Macro Just to remind also that you can split the dataset (SPLIT FILE) and then
run your matrix routine via INSERT it. In this case, exactly the same MATRIX-END MATRIX session will run for each split subsample. ===================== 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 |
Free forum by Nabble | Edit this page |