<?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: PROC tabulate output for derived opinion questions in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-tabulate-output-for-derived-opinion-questions/m-p/929817#M83486</link>
    <description>&lt;P&gt;Hi Paige,&lt;BR /&gt;&lt;BR /&gt;The raw data is considered confidential, so unfortunately I cannot post it&lt;BR /&gt;here.&amp;nbsp; I will upload some fake data.&lt;BR /&gt;&lt;BR /&gt;Also, I do not have the code, it was available at the time that the example table&lt;BR /&gt;was produced but has since been deleted (by someone else) to save disk space. &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 27 May 2024 12:01:32 GMT</pubDate>
    <dc:creator>MdeCuypere</dc:creator>
    <dc:date>2024-05-27T12:01:32Z</dc:date>
    <item>
      <title>PROC tabulate output for derived opinion questions</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-tabulate-output-for-derived-opinion-questions/m-p/929814#M83483</link>
      <description>&lt;P&gt;Hello members,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am seeking the most efficient solution or examples to output percentages of response categories in a tabular format for an opinion survey using the answer categories and specifications further below,.&amp;nbsp; Any feedback or code would be greatly appreciated, especially for the the most and least positive answer categories.&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="MdeCuypere_0-1716808906997.png" style="width: 700px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/96793iA6F97771F3283589/image-dimensions/700x196?v=v2" width="700" height="196" role="button" title="MdeCuypere_0-1716808906997.png" alt="MdeCuypere_0-1716808906997.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The metric, Score0-100 is calculated by assigning a higher weight to more positive responses. In this way, the higher the Score0-100, the more positive the result. Across the questions with a five-point response scale, the most positive response is assigned a weight of 100, the second most positive response is given a weight of 75, the third most positive response is given a weight of 50, the second least positive response is assigned a weight of 25 and the least positive response category is given a weight of 0. When Score 0-100 is provided for a group, the average score is calculated across respondents in that group.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, if there were 20 respondents in a group, the Score0-100 for each person would be summed and divided by 20 to give the average of the&amp;nbsp; Score0-100.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SCORE100 is calculated by removing the DK and NA, and then attributing a score of…&lt;BR /&gt;100 to the most positive answer category&lt;BR /&gt;75 to the second most positive answer category&lt;BR /&gt;50 to the neutral category&lt;BR /&gt;25 to the second most negative answer category&lt;BR /&gt;0 to the most negative answer category&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 11:43:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-tabulate-output-for-derived-opinion-questions/m-p/929814#M83483</guid>
      <dc:creator>MdeCuypere</dc:creator>
      <dc:date>2024-05-27T11:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: PROC tabulate output for derived opinion questions</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-tabulate-output-for-derived-opinion-questions/m-p/929815#M83484</link>
      <description>&lt;P&gt;Sample data would help us with writing code. Please provide the sample data as WORKING data step code (&lt;A href="https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/" target="_self"&gt;Examples and instructions&lt;/A&gt;) and not in any other format. If there are confidentiality issues, the data can be fake as long as they represent the problem and represent the layout of the raw data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Although, this seems to me to be fairly standard survey problem; is there not already code at your company or university that will do this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also many of us will not download attached files here. The proper way to show us something is to make a screen capture and then use the "Insert Photos" icon to include the screen capture in your reply.&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 11:50:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-tabulate-output-for-derived-opinion-questions/m-p/929815#M83484</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-05-27T11:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: PROC tabulate output for derived opinion questions</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-tabulate-output-for-derived-opinion-questions/m-p/929816#M83485</link>
      <description>&lt;P&gt;Please supply &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank" rel="noopener"&gt;usable example data&lt;/A&gt; which goes into this report.&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 11:51:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-tabulate-output-for-derived-opinion-questions/m-p/929816#M83485</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2024-05-27T11:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: PROC tabulate output for derived opinion questions</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-tabulate-output-for-derived-opinion-questions/m-p/929817#M83486</link>
      <description>&lt;P&gt;Hi Paige,&lt;BR /&gt;&lt;BR /&gt;The raw data is considered confidential, so unfortunately I cannot post it&lt;BR /&gt;here.&amp;nbsp; I will upload some fake data.&lt;BR /&gt;&lt;BR /&gt;Also, I do not have the code, it was available at the time that the example table&lt;BR /&gt;was produced but has since been deleted (by someone else) to save disk space. &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 12:01:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-tabulate-output-for-derived-opinion-questions/m-p/929817#M83486</guid>
      <dc:creator>MdeCuypere</dc:creator>
      <dc:date>2024-05-27T12:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: PROC tabulate output for derived opinion questions</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-tabulate-output-for-derived-opinion-questions/m-p/929832#M83489</link>
      <description>&lt;P&gt;Here is some more fake data if this helps; apologies it isn't more comprehensive as I am juggling work today.&amp;nbsp; Least positive is assigned a weight of zero....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*Answer Categories Code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Strongly agree 01&lt;/P&gt;&lt;P&gt;Somewhat agree 02&lt;/P&gt;&lt;P&gt;Neither agree nor disagree 03&lt;/P&gt;&lt;P&gt;Somewhat disagree 04&lt;/P&gt;&lt;P&gt;Strongly disagree 05&lt;/P&gt;&lt;P&gt;Not applicable 06&lt;/P&gt;&lt;P&gt;Don’t know 97&lt;/P&gt;&lt;P&gt;Not stated 99&amp;nbsp; */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;WORK.Fakedata(label='Opinion Question Data');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;infile&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;datalines&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;dsd&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;truncover;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;input&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Obs:&lt;STRONG&gt;1.&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;QA1:$2.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;QA2:$2.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;QA3:$2.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;QA4:$2.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;QA5:$2.;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;1 01 05 01 01 01&lt;/P&gt;&lt;P&gt;2 05 01 01 01 01&lt;/P&gt;&lt;P&gt;3 97 06 06 06 06&lt;/P&gt;&lt;P&gt;4 06 06 06 06 99&lt;/P&gt;&lt;P&gt;5 02 05 01 05 01&lt;/P&gt;&lt;P&gt;6 03 02 03 04 06&lt;/P&gt;&lt;P&gt;7 01 02 02 02 02&lt;/P&gt;&lt;P&gt;8 99 01 01 01 01&lt;/P&gt;&lt;P&gt;9 04 01 01 01 01&lt;/P&gt;&lt;P&gt;10 04 01 02 02 03&lt;/P&gt;&lt;P&gt;11 05 01 02 02 03&lt;/P&gt;&lt;P&gt;12 01 04 01 02 02&lt;/P&gt;&lt;P&gt;13 05 04 01 02 02&lt;/P&gt;&lt;P&gt;14 06 04 01 02 05&lt;/P&gt;&lt;P&gt;15 02 06 04 01 02&lt;/P&gt;&lt;P&gt;16 03 06 04 01 02&lt;/P&gt;&lt;P&gt;17 01 01 02 02 02&lt;/P&gt;&lt;P&gt;18 04 01 02 02 02&lt;/P&gt;&lt;P&gt;19 04 01 02 02 02&lt;/P&gt;&lt;P&gt;20 04 06 04 01 02&lt;/P&gt;&lt;P&gt;21 05 01 02 02 03&lt;/P&gt;&lt;P&gt;22 01 04 06 99 02&lt;/P&gt;&lt;P&gt;23 05 04 01 02 97&lt;/P&gt;&lt;P&gt;24 06 04 01 02 05&lt;/P&gt;&lt;P&gt;25 02 06 04 01 02&lt;/P&gt;&lt;P&gt;26 03 06 04 01 02&lt;/P&gt;&lt;P&gt;27 01 01 02 02 02&lt;/P&gt;&lt;P&gt;28 04 01 02 02 02&lt;/P&gt;&lt;P&gt;29 04 01 02 97 99&lt;/P&gt;&lt;P&gt;30 04 06 04 01 02&lt;/P&gt;&lt;P&gt;31 05 01 02 02 03&lt;/P&gt;&lt;P&gt;32 01 04 06 99 02&lt;/P&gt;&lt;P&gt;33 05 04 01 02 02&lt;/P&gt;&lt;P&gt;34 06 04 01 02 05&lt;/P&gt;&lt;P&gt;35 02 06 04 01 02&lt;/P&gt;&lt;P&gt;36 03 06 04 01 02&lt;/P&gt;&lt;P&gt;37 01 01 02 02 02&lt;/P&gt;&lt;P&gt;38 04 01 02 02 02&lt;/P&gt;&lt;P&gt;39 04 01 02 97 99&lt;/P&gt;&lt;P&gt;40 04 06 04 01 02&lt;/P&gt;&lt;P&gt;41 01 05 01 01 01&lt;/P&gt;&lt;P&gt;42 05 01 01 01 01&lt;/P&gt;&lt;P&gt;43 97 06 06 06 06&lt;/P&gt;&lt;P&gt;44 06 06 06 06 06&lt;/P&gt;&lt;P&gt;45 02 05 01 05 01&lt;/P&gt;&lt;P&gt;46 03 02 03 04 06&lt;/P&gt;&lt;P&gt;47 01 02 02 02 02&lt;/P&gt;&lt;P&gt;48 99 01 01 01 01&lt;/P&gt;&lt;P&gt;49 04 01 01 01 01&lt;/P&gt;&lt;P&gt;50 04 01 02 02 03&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 18:04:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-tabulate-output-for-derived-opinion-questions/m-p/929832#M83489</guid>
      <dc:creator>MdeCuypere</dc:creator>
      <dc:date>2024-05-27T18:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: PROC tabulate output for derived opinion questions</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-tabulate-output-for-derived-opinion-questions/m-p/929835#M83490</link>
      <description>&lt;P&gt;What a shame you didn't give us fake data for two or more questions, we could have given you an answer if the survey had two or more questions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is my answer. I have not programmed the formula for the score of the "Least Positive" as you have not provided a formula, but in any case, you can follow what I did and program that yourself. I also got lazy in PROC REPORT, there are more lines needed but you can again follow what I did and fill them in.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=fakedata;
    tables qa/noprint out=_counts_;
run;

proc transpose data=_counts_ out=_counts_t prefix=pct_;
    var percent;
    id qa;
run;

data high_score;
    set _counts_t;
    high_score=(100*pct_01 + 75*pct_02 + 50*pct_03 + 25*pct_04)/100;
run; 

proc report data=high_score Split='~';
     columns pct_01--high_score;
     define pct_01/display "Strongly~Agree~(%)";
     define pct_02/display "Somewhat~Agree~(%)";
     define pct_03/display "Neither~Agree~nor~Disagree~(%)";
     /* I'm lazy, you type the rest */
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 May 2024 16:24:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-tabulate-output-for-derived-opinion-questions/m-p/929835#M83490</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-05-27T16:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: PROC tabulate output for derived opinion questions</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-tabulate-output-for-derived-opinion-questions/m-p/929838#M83492</link>
      <description>&lt;P&gt;Hi, thanks for your solution.&amp;nbsp; Here is some more fake data if this helps; apologies it isn't more comprehensive as I am juggling work today.&amp;nbsp; Least positive is assigned a weight of zero....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*Answer Categories Code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Strongly agree 01&lt;/P&gt;&lt;P&gt;Somewhat agree 02&lt;/P&gt;&lt;P&gt;Neither agree nor disagree 03&lt;/P&gt;&lt;P&gt;Somewhat disagree 04&lt;/P&gt;&lt;P&gt;Strongly disagree 05&lt;/P&gt;&lt;P&gt;Not applicable 06&lt;/P&gt;&lt;P&gt;Don’t know 97&lt;/P&gt;&lt;P&gt;Not stated 99&amp;nbsp; */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;WORK.Fakedata(label='Opinion Question Data');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;infile&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;datalines&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;dsd&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;truncover;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;input&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Obs:&lt;STRONG&gt;1.&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;QA1:$2.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;QA2:$2.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;QA3:$2.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;QA4:$2.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;QA5:$2.;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;1 01 05 01 01 01&lt;/P&gt;&lt;P&gt;2 05 01 01 01 01&lt;/P&gt;&lt;P&gt;3 97 06 06 06 06&lt;/P&gt;&lt;P&gt;4 06 06 06 06 99&lt;/P&gt;&lt;P&gt;5 02 05 01 05 01&lt;/P&gt;&lt;P&gt;6 03 02 03 04 06&lt;/P&gt;&lt;P&gt;7 01 02 02 02 02&lt;/P&gt;&lt;P&gt;8 99 01 01 01 01&lt;/P&gt;&lt;P&gt;9 04 01 01 01 01&lt;/P&gt;&lt;P&gt;10 04 01 02 02 03&lt;/P&gt;&lt;P&gt;11 05 01 02 02 03&lt;/P&gt;&lt;P&gt;12 01 04 01 02 02&lt;/P&gt;&lt;P&gt;13 05 04 01 02 02&lt;/P&gt;&lt;P&gt;14 06 04 01 02 05&lt;/P&gt;&lt;P&gt;15 02 06 04 01 02&lt;/P&gt;&lt;P&gt;16 03 06 04 01 02&lt;/P&gt;&lt;P&gt;17 01 01 02 02 02&lt;/P&gt;&lt;P&gt;18 04 01 02 02 02&lt;/P&gt;&lt;P&gt;19 04 01 02 02 02&lt;/P&gt;&lt;P&gt;20 04 06 04 01 02&lt;/P&gt;&lt;P&gt;21 05 01 02 02 03&lt;/P&gt;&lt;P&gt;22 01 04 06 99 02&lt;/P&gt;&lt;P&gt;23 05 04 01 02 97&lt;/P&gt;&lt;P&gt;24 06 04 01 02 05&lt;/P&gt;&lt;P&gt;25 02 06 04 01 02&lt;/P&gt;&lt;P&gt;26 03 06 04 01 02&lt;/P&gt;&lt;P&gt;27 01 01 02 02 02&lt;/P&gt;&lt;P&gt;28 04 01 02 02 02&lt;/P&gt;&lt;P&gt;29 04 01 02 97 99&lt;/P&gt;&lt;P&gt;30 04 06 04 01 02&lt;/P&gt;&lt;P&gt;31 05 01 02 02 03&lt;/P&gt;&lt;P&gt;32 01 04 06 99 02&lt;/P&gt;&lt;P&gt;33 05 04 01 02 02&lt;/P&gt;&lt;P&gt;34 06 04 01 02 05&lt;/P&gt;&lt;P&gt;35 02 06 04 01 02&lt;/P&gt;&lt;P&gt;36 03 06 04 01 02&lt;/P&gt;&lt;P&gt;37 01 01 02 02 02&lt;/P&gt;&lt;P&gt;38 04 01 02 02 02&lt;/P&gt;&lt;P&gt;39 04 01 02 97 99&lt;/P&gt;&lt;P&gt;40 04 06 04 01 02&lt;/P&gt;&lt;P&gt;41 01 05 01 01 01&lt;/P&gt;&lt;P&gt;42 05 01 01 01 01&lt;/P&gt;&lt;P&gt;43 97 06 06 06 06&lt;/P&gt;&lt;P&gt;44 06 06 06 06 06&lt;/P&gt;&lt;P&gt;45 02 05 01 05 01&lt;/P&gt;&lt;P&gt;46 03 02 03 04 06&lt;/P&gt;&lt;P&gt;47 01 02 02 02 02&lt;/P&gt;&lt;P&gt;48 99 01 01 01 01&lt;/P&gt;&lt;P&gt;49 04 01 01 01 01&lt;/P&gt;&lt;P&gt;50 04 01 02 02 03&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 17:24:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-tabulate-output-for-derived-opinion-questions/m-p/929838#M83492</guid>
      <dc:creator>MdeCuypere</dc:creator>
      <dc:date>2024-05-27T17:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: PROC tabulate output for derived opinion questions</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-tabulate-output-for-derived-opinion-questions/m-p/929845#M83493</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods table onewayfreqs=temp;
proc freq data=fakedata;
    tables qa1-qa5;
run;

data percents;
    /* This data step code from */
   	/* https://communities.sas.com/t5/SAS-Programming/proc-freq-one-way-table-for-multiple-vars-export-to-data-set/m-p/924730#M363982 */
    length variable $32. variable_value $50.;
    set temp;
    variable=scan(table, 2);
    Variable_Value=strip(trim(vvaluex(variable)));
    keep variable variable_value frequency percent cum:;
    label variable='Variable' variable_value='Variable Value';
run;

proc transpose data=percents out=percents_t prefix=pct_;
    by variable;
    var percent;
    id variable_value;
run;

data high_score;
    set percents_t;
    high_score=sum(100*pct_01 , 75*pct_02 , 50*pct_03 , 25*pct_04)/100;
run; 

proc report data=high_score Split='~';
     columns variable pct_01--high_score;
     define variable/display "Question";
     define pct_01/display "Strongly~Agree~(%)" format=8.0;
     define pct_02/display "Somewhat~Agree~(%)" format=8.0;
     define pct_03/display "Neither~Agree~nor~Disagree~(%)" format=8.0;
     /* I'm lazy, you type the rest */
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 May 2024 19:34:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-tabulate-output-for-derived-opinion-questions/m-p/929845#M83493</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-05-27T19:34:20Z</dc:date>
    </item>
  </channel>
</rss>

