<?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: Analyze Multiple choice survey questions: many variables in one crosstable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Analyze-Multiple-choice-survey-questions-many-variables-in-one/m-p/617598#M181017</link>
    <description>You need to change your data structure. Transpose your data such that you have your data structured such as:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ID Question Response Attendance_2019 &lt;BR /&gt;1   1            1                 0&lt;BR /&gt;1   2            5                 0&lt;BR /&gt;1   3            4                 0&lt;BR /&gt;1   4            3                 0&lt;BR /&gt;&lt;BR /&gt;Then you can use a proc freq. Or you can capture those results and then use PROC TRANSPOSE on the results. Either are options. &lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 15 Jan 2020 21:37:31 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2020-01-15T21:37:31Z</dc:date>
    <item>
      <title>Analyze Multiple choice survey questions: many variables in one crosstable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Analyze-Multiple-choice-survey-questions-many-variables-in-one/m-p/617590#M181014</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having trouble analyzing Multiple Choice questions of a survey.&lt;/P&gt;&lt;P&gt;Survey Monkey provided me a table with all answers to my questions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For multiple choice questions it coded each choice into one variable.&lt;/P&gt;&lt;P&gt;When I analyze the data for one question, I get many tables (one for each variable).&lt;/P&gt;&lt;P&gt;I would like to know if it possible to get all "choice" variables in one single table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the current code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc freq data=work.cmoj;&lt;BR /&gt;Tables (&lt;BR /&gt;Principales_act_1&lt;BR /&gt;Principales_act_2&lt;BR /&gt;Principales_act_3&lt;BR /&gt;Principales_act_4&lt;BR /&gt;Principales_act_5&lt;BR /&gt;Principales_act_6&lt;BR /&gt;Principales_act_7&lt;BR /&gt;Principales_act_otro) *Attendance_2019/ nocol norow;&lt;BR /&gt;Run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get one table for each variable, but what I want to do is have one table that includes all choice variable in rows, and the crossed variable choices in columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 21:29:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Analyze-Multiple-choice-survey-questions-many-variables-in-one/m-p/617590#M181014</guid>
      <dc:creator>FelipOH</dc:creator>
      <dc:date>2020-01-15T21:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Analyze Multiple choice survey questions: many variables in one crosstable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Analyze-Multiple-choice-survey-questions-many-variables-in-one/m-p/617598#M181017</link>
      <description>You need to change your data structure. Transpose your data such that you have your data structured such as:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ID Question Response Attendance_2019 &lt;BR /&gt;1   1            1                 0&lt;BR /&gt;1   2            5                 0&lt;BR /&gt;1   3            4                 0&lt;BR /&gt;1   4            3                 0&lt;BR /&gt;&lt;BR /&gt;Then you can use a proc freq. Or you can capture those results and then use PROC TRANSPOSE on the results. Either are options. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Jan 2020 21:37:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Analyze-Multiple-choice-survey-questions-many-variables-in-one/m-p/617598#M181017</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-01-15T21:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: Analyze Multiple choice survey questions: many variables in one crosstable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Analyze-Multiple-choice-survey-questions-many-variables-in-one/m-p/617982#M181200</link>
      <description>&lt;P&gt;Hi Reeza:&lt;/P&gt;&lt;P&gt;Thank you very much for answer. I think transposing would't do what I need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My data structure is in this way:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Attribute__1&lt;/TD&gt;&lt;TD&gt;Attribute__2&lt;/TD&gt;&lt;TD&gt;Attribute__3&lt;/TD&gt;&lt;TD&gt;Attribute__4&lt;/TD&gt;&lt;TD&gt;Attribute__5&lt;/TD&gt;&lt;TD&gt;Type_assit&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Socialize&lt;/TD&gt;&lt;TD&gt;freq&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Sessions&lt;/TD&gt;&lt;TD&gt;Congress&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;ocas&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Sessions&lt;/TD&gt;&lt;TD&gt;Congress&lt;/TD&gt;&lt;TD&gt;Certification&lt;/TD&gt;&lt;TD&gt;Social Service&lt;/TD&gt;&lt;TD&gt;Socialize&lt;/TD&gt;&lt;TD&gt;freq&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Sessions&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;ocas&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Sessions&lt;/TD&gt;&lt;TD&gt;Congress&lt;/TD&gt;&lt;TD&gt;Certification&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;freq&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Sessions&lt;/TD&gt;&lt;TD&gt;Congress&lt;/TD&gt;&lt;TD&gt;Certification&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;ocas&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Sessions&lt;/TD&gt;&lt;TD&gt;Congress&lt;/TD&gt;&lt;TD&gt;Certification&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Socialize&lt;/TD&gt;&lt;TD&gt;freq&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want to read is in this way:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD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&lt;TD&gt;13%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;28&lt;/TD&gt;&lt;TD&gt;24&lt;/TD&gt;&lt;TD&gt;52&lt;/TD&gt;&lt;TD&gt;100%&lt;/TD&gt;&lt;TD&gt;100%&lt;/TD&gt;&lt;TD&gt;100%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this can illustrate my issue, thanks again for your time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2020 00:40:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Analyze-Multiple-choice-survey-questions-many-variables-in-one/m-p/617982#M181200</guid>
      <dc:creator>FelipOH</dc:creator>
      <dc:date>2020-01-17T00:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Analyze Multiple choice survey questions: many variables in one crosstable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Analyze-Multiple-choice-survey-questions-many-variables-in-one/m-p/617991#M181209</link>
      <description>Transposing would do exactly what you want. Have you tried it?&lt;BR /&gt;&lt;BR /&gt;proc transpose data=have out=long;&lt;BR /&gt;by type_assist; &lt;BR /&gt;var attribute1-attribute5;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc freq data=long;&lt;BR /&gt;table col1*type_assist;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;Or PROC TABULATE for percentages. &lt;BR /&gt;This is one approach, there are others. Feel free to choose the solution that meets your needs.</description>
      <pubDate>Fri, 17 Jan 2020 02:14:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Analyze-Multiple-choice-survey-questions-many-variables-in-one/m-p/617991#M181209</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-01-17T02:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: Analyze Multiple choice survey questions: many variables in one crosstable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Analyze-Multiple-choice-survey-questions-many-variables-in-one/m-p/622894#M183258</link>
      <description>Thank you very much for the info!&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Feb 2020 23:15:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Analyze-Multiple-choice-survey-questions-many-variables-in-one/m-p/622894#M183258</guid>
      <dc:creator>FelipOH</dc:creator>
      <dc:date>2020-02-06T23:15:00Z</dc:date>
    </item>
  </channel>
</rss>

