<?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 calculate the frequency of the multiple responses in the survey? in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-calculate-the-frequency-of-the-multiple-responses-in-the/m-p/573743#M34233</link>
    <description>You're showing output that does't match the variable names so it's hard to tell. I think you're going to need to combine your multiple variables to single variables first and then summarize it to get the tables you want.</description>
    <pubDate>Tue, 16 Jul 2019 04:03:33 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-07-16T04:03:33Z</dc:date>
    <item>
      <title>How to calculate the frequency of the multiple responses in the survey?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-calculate-the-frequency-of-the-multiple-responses-in-the/m-p/573716#M34223</link>
      <description>&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the responses from a survey. Some variables have multiple responses (check all that apply) and I was able to code them into binary responses (0/1) into each variable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to calculate the frequency- count and percent of each variable (response) and present the numbers. My problem is that my output is not in the format it needs to be displayed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="OutputFreq.JPG" style="width: 506px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/31069i703EEFCCEE37612F/image-dimensions/506x521?v=v2" width="506" height="521" role="button" title="OutputFreq.JPG" alt="OutputFreq.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is the SAS code I am using for above output- ( uses only one of the question responses- Q2_0 and its responses)&lt;/P&gt;&lt;P&gt;I need to do this for all the survey questions and their responses.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; proc freq data=survey order= freq;
 table Relation__Mother  Relation__Father Relation__Gaurdian Relation__Other;
 run;&lt;/PRE&gt;&lt;P&gt;The output needs to look like this- (Expected Output format)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ExpectedOutputFormat.JPG" style="width: 446px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/31070i13A08E02BF1C85B7/image-dimensions/446x329?v=v2" width="446" height="329" role="button" title="ExpectedOutputFormat.JPG" alt="ExpectedOutputFormat.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am sure I am missing the simplest of the step in my code, but I really could use help here, in the midst of running codes for 20 different things at the same time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also attached the data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Anu&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2019 23:45:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-calculate-the-frequency-of-the-multiple-responses-in-the/m-p/573716#M34223</guid>
      <dc:creator>anucharbe</dc:creator>
      <dc:date>2019-07-15T23:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate the frequency of the multiple responses in the survey?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-calculate-the-frequency-of-the-multiple-responses-in-the/m-p/573743#M34233</link>
      <description>You're showing output that does't match the variable names so it's hard to tell. I think you're going to need to combine your multiple variables to single variables first and then summarize it to get the tables you want.</description>
      <pubDate>Tue, 16 Jul 2019 04:03:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-calculate-the-frequency-of-the-multiple-responses-in-the/m-p/573743#M34233</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-16T04:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate the frequency of the multiple responses in the survey?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-calculate-the-frequency-of-the-multiple-responses-in-the/m-p/573855#M34239</link>
      <description>&lt;DIV&gt;&lt;FONT style="background-color: #ffffff;"&gt;MR variables are tricky, although they seem to be straightforward.&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT style="background-color: #ffffff;"&gt;I suggest you set up two datasets; one of respondents with the appropriate variables, and the other of responses, with the appropriate variables. Tabulations on these two datasets should get you what you want.&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT style="background-color: #ffffff;"&gt;Tom&lt;/FONT&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 16 Jul 2019 14:41:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-calculate-the-frequency-of-the-multiple-responses-in-the/m-p/573855#M34239</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2019-07-16T14:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate the frequency of the multiple responses in the survey?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-calculate-the-frequency-of-the-multiple-responses-in-the/m-p/573883#M34241</link>
      <description>&lt;P&gt;With dichotomous 0/1 coded variables the Sum is the count of 1's and the Mean is the percent in decimal form.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would be very hesitant in many cases to show a "cumulative" frequency or and especially percent as it may imply something not shown without a LOT of verbiage to describe the contents of the table and interpretation may be somewhat odd. For example think very carefully what is the denominator of that cumulative percent? Now, think again.&amp;nbsp;After that,&amp;nbsp;write it out so we can see what you think it should be.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 15:08:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-calculate-the-frequency-of-the-multiple-responses-in-the/m-p/573883#M34241</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-07-16T15:08:16Z</dc:date>
    </item>
  </channel>
</rss>

