During a macro in which most of the calculations are completed using matrix
manipulation, there are two matrices produced which would be nice to have printed as supplementary tables, preferably at the end of the viewer output. I have syntax already which prints from within the matrix/end-matrix commands; but matrices do not present as well visually as do outputs from "report"; and I have to print them out as the first part of the output. I can save the matrix to an SPSS data file at which point the variables become col1, col2, col3...., etc. I want to rename the variables as in: rename (col1 to coln=1 to n), where n is a variable that is computed during the calculations. Any chance of this, or should I just go with what I already have? Thanks, all. Brian Confidentiality Notice for Email Transmissions: The information in this message is confidential and may be legally privileged. It is intended solely for the addressee. Access to this message by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, or distribution of the message, or any action or omission taken by you in reliance on it, is prohibited and may be unlawful. Please immediately contact the sender if you have received this message in error. Thank you. |
At 02:51 PM 11/30/2006, Dates, Brian wrote:
>There are two matrices which would be nice to have printed as >supplementary tables. I can save the matrix to an SPSS data file at >which point the variables become col1, col2, col3...., etc. I want to >rename the variables as in: > > rename (col1 to coln=1 to n), where n is a variable > that is >computed during the calculations. Would either the VARIABLES or NAMES specifications on the matrix SAVE command help you? |
In reply to this post by bdates
Richard,
Thanks. I've been using them to get what I want, and am continuing. It may be that I just haven't hit on the right syntax yet. Thanks. Brian > At 02:51 PM 11/30/2006, Dates, Brian wrote: > > >There are two matrices which would be nice to have printed as > >supplementary tables. I can save the matrix to an SPSS data file at > >which point the variables become col1, col2, col3...., etc. I want to > >rename the variables as in: > > > > rename (col1 to coln=1 to n), where n is a variable > > that is > >computed during the calculations. > > Would either the VARIABLES or NAMES specifications on the matrix SAVE > command help you? > > message is confidential and may be legally privileged. It is intended solely for the addressee. Access to this message by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, or distribution of the message, or any action or omission taken by you in reliance on it, is prohibited and may be unlawful. Please immediately contact the sender if you have received this message in error. Thank you. |
In reply to this post by bdates
The Python programmability modules originally distributed as part of the Bonus Pack are now available for download on Developer Central (www.spss.com/devcentral). The downloadable versions have enhancements over the original Bonus Pack cd. These modules require at least SPSS 15 and, of course, the Python programmability Plug-In. The rake module also requires the SPSS Advanced Models option.
The modules are rake.py a module for adjusting sampling weights to control totals in one or more dimensions trans.py a framework for executing transformations written in Python over the SPSS case data extendedTransforms.py a collection of transformation functions mainly intended for use with the trans module although they can also be used separately. A partial list of functions in this module includes regular expression searching and replacing for strings soundex and nysiis functions for computing approximate phonetic values of names and other words functions to convert between complex date/time string value and SPSS datetime variables (these allow you to specify a pattern for the date and/or time rather than the built-in formats) table lookup without the restrictions of SPSS Match files. We hope that you will find these useful. Jon Peck SPSS |
Free forum by Nabble | Edit this page |