|
Banned User
|
CONTENTS DELETED
The author has deleted this message.
|
|
In reply to this post by John F Hall
In the gui, turn on totals via Categories
and Totals. Then, in the Summary Statistics subdialog, check Custom
Summary Statistics for Totals and Subtotals, and off you go.
Jon Peck (no "h") aka Kim Senior Software Engineer, IBM [hidden email] new phone: 720-342-5621 From: "John F Hall" <[hidden email]> To: Jon K Peck/Chicago/IBM@IBMUS Cc: <[hidden email]>, "'David Marso'" <[hidden email]>, <[hidden email]>, "'Poes, Matthew Joseph'" <[hidden email]>, "'ViAnn Beadle'" <[hidden email]> Date: 03/18/2012 11:25 PM Subject: RE: In support of CTABLES Jon Waking up at 4:15 am, it was a delight to find your mail. This is brilliant. I’ve modified your syntax to suit my data set, but I need to work out how to get the syntax from the GUI since that’s what students will use. Here are the tables (and syntax) I produced: 1: Zero order ctables /tables by happy [c] [ROWPCT.COUNT TOTALS[COUNT]] /CATEGORIES VARIABLES=happy TOTAL=YES POSITION=AFTER .
2: First order CTABLES /TABLE marital [C] BY happy [C][ROWPCT.COUNT TOTALS[COUNT]] /CATEGORIES VARIABLES= marital happy TOTAL=YES POSITION=AFTER .
The format of these tables is exactly what I want for earlier tutorials (and for reports): it’s a shame I can’t get them using CROSSTABS. 3: Second order CTABLES /TABLE marital [C] BY happy [C][ROWPCT.COUNT TOTALS[COUNT]] /CATEGORIES VARIABLES= marital happy TOTAL=YES POSITION=AFTER .
OOPS!! 45 year old Algol programming instinct made me try: CTABLES /TABLE marital [C] > sex [c] by happy [C][ROWPCT.COUNT TOTALS[COUNT]] /CATEGORIES VARIABLES= marital sex happy TOTAL=YES POSITION=after .
CTABLES /TABLE sex [c] > marital [C] by happy [C] [ROWPCT.COUNT TOTALS[COUNT]] /CATEGORIES VARIABLES= marital sex happy TOTAL=YES POSITION=after .
There’s rather too much data in these tables: they might be more informative if the Total rows were dropped, leaving just the Total column as below, but tidier:
. . . or perhaps analyse only one category at a time to generate smaller tables. The next step would be to take a criterion value for the dependent variable, ie value 1 (Not too happy) or value 3 (Very happy) and produce a summary table as in my earlier mail. In that, I used “Very happy”, but being happy is normative, so I suspect it would be more interesting to pursue the “Not too happy” category. I still need to check out David’s syntax, but now that I’ve been let loose with a new toy, preparation of and planting in the vegetable garden will be a less attractive proposition: the next few days are going to be fun. Cordialement John Email: johnfhall@... Website: www.surveyresearch.weebly.com Skype: surveyresearcher1 Phone: (+33) (0) 2.33.45.91.47 From: Jon K Peck [mailto:peck@...] Sent: 18 March 2012 23:35 To: John F Hall Subject: RE: In support of CTABLES One comment jumps out at me "This table is easier to interpret, but we have lost the base for percentaging at the end of each row. Without special programming beyond the scope of this tutorial, SPSS cannot produce a table with n instead of 100%. A more useful table would look like this:" In the Summary Statistics subdialog (and, of course, in the TABLE subcommand), you can choose different statistics for totals from the items tabulated. For example, CTABLES /TABLE gender [C] BY jobcat [C][ROWPCT.COUNT TOTALS[COUNT]] /CATEGORIES VARIABLES=gender jobcat TOTAL=YES POSITION=AFTER . gives you percents on the non-total cells and counts for the totals cells. Jon Peck (no "h") aka Kim Senior Software Engineer, IBM peck@... new phone: 720-342-5621 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Free forum by Nabble | Edit this page |
