I’m advising a group of students doing a survey of shift-workers. Is there a way to rearrange the variables in a mult resp table (dichotomous mode: see table below) by size of frequencies, or do they have to do it by hand? RTFM doesn’t help as there doesn’t appear to be anything. John F Hall
|
If you are using CTABLES, this is easy
to do. Here's an example.
CTABLES /TABLE $prob BY childs /CATEGORIES VARIABLES=$prob ORDER=D KEY=COUNT The MR set works just like ordinary variables. You can see this choice in the Categories and Totals subdialog of the gui. If you are using the old Multiple Response procedure, you would have to run the table and then reorder the categories in the set definition appropriately and run the table again. Jon Peck (no "h") aka Kim Senior Software Engineer, IBM [hidden email] new phone: 720-342-5621 From: John F Hall <[hidden email]> To: [hidden email] Date: 11/21/2011 04:48 AM Subject: [SPSSX-L] Re-order variables in mult response tables Sent by: "SPSSX(r) Discussion" <[hidden email]> I’m advising a group of students doing a survey of shift-workers. Is there a way to rearrange the variables in a mult resp table (dichotomous mode: see table below) by size of frequencies, or do they have to do it by hand? RTFM doesn’t help as there doesn’t appear to be anything. John F Hall johnfhall@... www.surveyresearch.weebly.com
|
Thanks Jon I was using traditional MULT RESP and should have sent the syntax as well. mult resp groups stim 'Q23: Substances taken to cope' (q23.1 to q23.3 (1)) hazards 'Q24: Hazards experienced in workplace' (q24.1 to q24.16 (1)) social 'Q28: Not at all satisfied with time for family and social life' (q28.1 to q28.11 (1)) /freq stim to social. How would I do this with CTABLES? John F Hall From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Jon K Peck If you are using CTABLES, this is easy to do. Here's an example.
|
Define your MR set with the MRSETS command.
The definition persists with the data, unlike with MULT RESP.
Then just run the CTABLES command referencing the set as I described. 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, <[hidden email]> Date: 11/21/2011 09:49 AM Subject: RE: Re-order variables in mult response tables Thanks Jon I was using traditional MULT RESP and should have sent the syntax as well. mult resp groups stim 'Q23: Substances taken to cope' (q23.1 to q23.3 (1)) hazards 'Q24: Hazards experienced in workplace' (q24.1 to q24.16 (1)) social 'Q28: Not at all satisfied with time for family and social life' (q28.1 to q28.11 (1)) /freq stim to social. How would I do this with CTABLES? John F Hall johnfhall@... www.surveyresearch.weebly.com From: SPSSX(r) Discussion [[hidden email]] On Behalf Of Jon K Peck Sent: 21 November 2011 15:12 To: [hidden email] Subject: Re: Re-order variables in mult response tables If you are using CTABLES, this is easy to do. Here's an example. CTABLES /TABLE $prob BY childs /CATEGORIES VARIABLES=$prob ORDER=D KEY=COUNT The MR set works just like ordinary variables. You can see this choice in the Categories and Totals subdialog of the gui. If you are using the old Multiple Response procedure, you would have to run the table and then reorder the categories in the set definition appropriately and run the table again. Jon Peck (no "h") aka Kim Senior Software Engineer, IBM [hidden email] new phone: 720-342-5621 From: John F Hall <[hidden email]> To: [hidden email] Date: 11/21/2011 04:48 AM Subject: [SPSSX-L] Re-order variables in mult response tables Sent by: "SPSSX(r) Discussion" <[hidden email]> I’m advising a group of students doing a survey of shift-workers. Is there a way to rearrange the variables in a mult resp table (dichotomous mode: see table below) by size of frequencies, or do they have to do it by hand? RTFM doesn’t help as there doesn’t appear to be anything. John F Hall johnfhall@... www.surveyresearch.weebly.com
|
Free forum by Nabble | Edit this page |