<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: how to handle multi choices question in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/how-to-handle-multi-choices-question/m-p/543919#M74207</link>
    <description>&lt;P&gt;Please supply example data in usable form (data step with datalines), so we have something to test code against.&lt;/P&gt;
&lt;P&gt;And an example for the expected output form that example data.&lt;/P&gt;</description>
    <pubDate>Mon, 18 Mar 2019 09:52:02 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2019-03-18T09:52:02Z</dc:date>
    <item>
      <title>how to handle multi choices question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-handle-multi-choices-question/m-p/543914#M74206</link>
      <description>&lt;P&gt;Hello everyone here&amp;nbsp;&lt;/P&gt;&lt;P&gt;please i have an issue which is&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have data from questionnaire, but there are some questions as multi choices means the answer wil be over two values, so please how can i deal with such problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;especially when i need to know the frequency for the choices.&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28008i5B4A2A866CAA37CB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 09:36:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-handle-multi-choices-question/m-p/543914#M74206</guid>
      <dc:creator>Radwan</dc:creator>
      <dc:date>2019-03-18T09:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to handle multi choices question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-handle-multi-choices-question/m-p/543919#M74207</link>
      <description>&lt;P&gt;Please supply example data in usable form (data step with datalines), so we have something to test code against.&lt;/P&gt;
&lt;P&gt;And an example for the expected output form that example data.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 09:52:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-handle-multi-choices-question/m-p/543919#M74207</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-03-18T09:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to handle multi choices question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-handle-multi-choices-question/m-p/543920#M74208</link>
      <description>&lt;P&gt;A common issue, occurs when people insist on keeping more than one data item in a single variable.&amp;nbsp; Expand your data out so that each observation contains one data element per data item, then run your procedures against it.&amp;nbsp; You can always alter for output later:&lt;/P&gt;
&lt;P&gt;So:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1,5,2,6,7 would become:&lt;/P&gt;
&lt;P&gt;1&lt;/P&gt;
&lt;P&gt;5&lt;/P&gt;
&lt;P&gt;2&lt;/P&gt;
&lt;P&gt;6&lt;/P&gt;
&lt;P&gt;7&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 09:53:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-handle-multi-choices-question/m-p/543920#M74208</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2019-03-18T09:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: how to handle multi choices question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-handle-multi-choices-question/m-p/543926#M74209</link>
      <description>&lt;P&gt;when i run proc means the variables with multi responses do not appear&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 10:18:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-handle-multi-choices-question/m-p/543926#M74209</guid>
      <dc:creator>Radwan</dc:creator>
      <dc:date>2019-03-18T10:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to handle multi choices question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-handle-multi-choices-question/m-p/543927#M74210</link>
      <description>&lt;P&gt;YOU mean i have to separate the question into sub-questions that equal to the number of choices in the question?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 10:20:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-handle-multi-choices-question/m-p/543927#M74210</guid>
      <dc:creator>Radwan</dc:creator>
      <dc:date>2019-03-18T10:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to handle multi choices question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-handle-multi-choices-question/m-p/543937#M74211</link>
      <description>&lt;P&gt;I don't know if you utilise CDISC models, however that should instruct you on how to model questionnaire data.&amp;nbsp; Each row of data presents:&lt;/P&gt;
&lt;P&gt;Questionnaire&amp;nbsp; &amp;nbsp; &amp;nbsp;Question&amp;nbsp; &amp;nbsp;Response&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this way you can proc freq all question separately, apply multi level formats to them so they get categorised correctly etc.&amp;nbsp; This is the way you should be modelling your data anyways, however it is done that way for a reason!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, i have questions 1, 2, 3&lt;/P&gt;
&lt;P&gt;My data looks like:&lt;BR /&gt;Question&amp;nbsp; &amp;nbsp; Response&lt;/P&gt;
&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;
&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/P&gt;
&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To group 1 and 3 together I can use a multi-level format:&lt;/P&gt;
&lt;PRE&gt;proc format;
  value tmp (multilabel)
    1="1"
    2="2"
    3="3"
    1,3="1,3";
run;

data have;
  question=1; result=1; output;
  question=2; result=0; output;
  question=3; result=1; output;
run;

proc means data=have;
  class question / mlf;
  var result;
  output out=want n=n;
  format question tmp.;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 11:03:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-handle-multi-choices-question/m-p/543937#M74211</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2019-03-18T11:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to handle multi choices question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-handle-multi-choices-question/m-p/544000#M74212</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/252600"&gt;@Radwan&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello everyone here&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please i have an issue which is&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i have data from questionnaire, but there are some questions as multi choices means the answer wil be over two values, so please how can i deal with such problem.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;especially when i need to know the frequency for the choices.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks in advance.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28008i5B4A2A866CAA37CB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;My only somewhat tongue-in-cheek answer would be: Refer to the analysis plan that was drawn up before the data collection occurred.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any data collection should support analysis. Which means that a plan should be in place as to how each component is to be used the analysis after collection. If you don't know how you are going to use a data item then I would ask: Why collect it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some things to consider with multiple choice answers are such things as:&lt;/P&gt;
&lt;P&gt;Does the order of response make a difference: example is selecting response 5 before response 2, as in your first and third rows, to be treated at all differently then 2 before 5, as in the 4th row?&lt;/P&gt;
&lt;P&gt;Are single responses such as the second row different than when a choice appears in combination with others?&lt;/P&gt;
&lt;P&gt;Or specific combinations of particular interest occurring together?&lt;/P&gt;
&lt;P&gt;Is the number of responses of importance? Possibly the main point of interest?&lt;/P&gt;
&lt;P&gt;Or how many any specific responses occurred regardless of order?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Addition bits are how this variable is to be used against/with other variables? Is Q22 going to be used to "predict" variable Q23 (or other)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is not exhaustive but gives some idea of the things you can get involved with. Many of these will require splitting out into additional variables such as Q22_1 = 1 when the value 1 was selected and 0 when not. Or creating another variable to hold the count of responses, of if specific combinations of interest occurred such as Q22_123 =1 when all (or possibly any) of responses 1, 2 and 3 are selected and 0 otherwise, or the number of 1, 2 and 3 when present and 0 otherwise.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What question(s) are the responses to Q22 supposed to answer? That is what the analysis plan should cover as well as specific measures or tests to be used.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 14:49:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-handle-multi-choices-question/m-p/544000#M74212</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-03-18T14:49:14Z</dc:date>
    </item>
  </channel>
</rss>

