Hi All, I have 2 tables below and I want to merge these two tables in single tables like given below
I want to generate new table like this
I am using the following syntax but it is not working CTABLES /VLABELS VARIABLES=gendor div_seg DISPLAY=LABEL /TABLE gendor [C][COLPCT.COUNT PCT40.1] BY div_seg [C] /SLABELS POSITION=ROW /CATEGORIES VARIABLES=gendor div_seg ORDER=A KEY=VALUE EMPTY=INCLUDE /COMPARETEST TYPE=PROP ALPHA=0.05 ADJUST=BONFERRONI ORIGIN=COLUMN INCLUDEMRSETS=YES
CATEGORIES=ALLVISIBLE MERGE=NO. SPSSINC MERGE TABLES MATCHLABEL="Column Total N %" ATTACH=ROWS MODE=MERGE
/OPTIONS HIDE=Yes APPENDTITLE=No APPENDCAPTION=Yes ADDLABELLEAF=Yes HALIGN=RIGHT SEPARATOR="\n" . Please help in correcting the same or any Python Utility to get the output in same format. Regards Manoj Kantar Disclaimer ===================== 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 |
Looking at your syntax, I see that the label specification in MERGE TABLES does not match the label in the table. Something like this will work. CTABLES /VLABELS VARIABLES=gender jobcat DISPLAY=DEFAULT /TABLE gender [C][COLPCT.COUNT PCT40.1] BY jobcat [C] /SLABELS POSITION=ROW /CATEGORIES VARIABLES=gender jobcat ORDER=A KEY=VALUE EMPTY=INCLUDE MISSING=EXCLUDE /CRITERIA CILEVEL=95 /COMPARETEST TYPE=PROP ALPHA=0.05 ADJUST=BONFERRONI ORIGIN=COLUMN INCLUDEMRSETS=YES CATEGORIES=ALLVISIBLE MERGE=NO SHOWSIG=NO. SPSSINC MERGE TABLES MATCHLABEL="Column N %" ATTACH=ROWS MODE=MERGE /OPTIONS HIDE=no APPENDTITLE=No APPENDCAPTION=Yes ADDLABELLEAF=Yes HALIGN=RIGHT SEPARATOR="\n" . But if you have at least Statistics version 24, you can produce the combined table directly by specifying /COMPARETEST TYPE=PROP ALPHA=0.05 ADJUST=BONFERRONI ORIGIN=COLUMN INCLUDEMRSETS=YES CATEGORIES=ALLVISIBLE MERGE=YES STYLE=SIMPLE SHOWSIG=NO. If you do it this way, you can use SPSSINC MODIFY TABLES to highlight significant cells in various ways. On Tue, Sep 25, 2018 at 11:57 AM Jon Peck <[hidden email]> wrote:
|
Free forum by Nabble | Edit this page |