<?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: Modifying Proc Report in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Modifying-Proc-Report/m-p/783034#M249627</link>
    <description>&lt;P&gt;Adding: you can in the wide layout that you show, have all the N together (three columns, one each for group 0, 1 and 2) and then have all the means together (three columns, one each for group 0, 1 and 2), and so on. This isn't hard to do in PROC REPORT.&lt;/P&gt;</description>
    <pubDate>Mon, 29 Nov 2021 22:07:32 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2021-11-29T22:07:32Z</dc:date>
    <item>
      <title>Modifying Proc Report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modifying-Proc-Report/m-p/783007#M249623</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;How can I get the below proc report output to&amp;nbsp;show the statistics vertically? After every visit, I want to show all the statistics going down.&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="Etoo12121_1-1638219615976.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/66216iE73D31EC9C6A2EFF/image-dimensions/600x87?v=v2" width="600" height="87" role="button" title="Etoo12121_1-1638219615976.png" alt="Etoo12121_1-1638219615976.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here is the code I currently have:&lt;/P&gt;
&lt;P&gt;proc report data=Test;&lt;BR /&gt;columns visit Groups, adlscore_: ;&lt;BR /&gt;define visit / 'Visit' group ;&lt;BR /&gt;define adlscore_N / ANALYSIS "N" Spacing=2;&lt;BR /&gt;define adlscore_Mean / analysis "Mean" format=6.2 Spacing=2; &lt;BR /&gt;define ADLSCORE_StdDev / analysis "SD" format=6.2 Spacing=2; &lt;BR /&gt;define ADLSCORE_LCLM / analysis "L95%CI" format=6.2 Spacing=2; &lt;BR /&gt;define ADLSCORE_UCLM / analysis "U95%CI" format=6.2 Spacing=2; &lt;BR /&gt;define ADLSCORE_Median /analysis "Median" format=6.2 Spacing=2; &lt;BR /&gt;define ADLSCORE_Min / analysis "Min" format=6.2 Spacing=2; &lt;BR /&gt;define ADLSCORE_Max / analysis "Max" format=6.2; &lt;BR /&gt;define groups / across&amp;nbsp; ;&lt;/P&gt;
&lt;P&gt;endcomp;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is how the output should look&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Etoo12121_3-1638220188176.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/66218i69CB2A5794BE2C6E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Etoo12121_3-1638220188176.png" alt="Etoo12121_3-1638220188176.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 21:11:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modifying-Proc-Report/m-p/783007#M249623</guid>
      <dc:creator>Etoo12121</dc:creator>
      <dc:date>2021-11-29T21:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying Proc Report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modifying-Proc-Report/m-p/783014#M249624</link>
      <description>&lt;P&gt;This request seems to go against the grain of PROC REPORT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You would need to re-arrange your data set and create a variable that takes on values N MEAN MIN MAX &lt;EM&gt;etc&lt;/EM&gt;. So on the rows where this variable has the value N, you have the statistic n; on the rows with MEAN you have the statistic mean; and so on.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 21:27:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modifying-Proc-Report/m-p/783014#M249624</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-11-29T21:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying Proc Report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modifying-Proc-Report/m-p/783034#M249627</link>
      <description>&lt;P&gt;Adding: you can in the wide layout that you show, have all the N together (three columns, one each for group 0, 1 and 2) and then have all the means together (three columns, one each for group 0, 1 and 2), and so on. This isn't hard to do in PROC REPORT.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 22:07:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modifying-Proc-Report/m-p/783034#M249627</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-11-29T22:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying Proc Report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modifying-Proc-Report/m-p/783035#M249628</link>
      <description>&lt;P&gt;PROC TABULATE seems like it would work here if you use the raw data rather than summarized data?&lt;/P&gt;
&lt;P&gt;Something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc tabulate data=test;
class visits groups;
var adlscore;
table visit * adlscore*(N MEAN STD LCLM UCLM MEDIAN MIN MAX), groups;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/384199"&gt;@Etoo12121&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;How can I get the below proc report output to&amp;nbsp;show the statistics vertically? After every visit, I want to show all the statistics going down.&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="Etoo12121_1-1638219615976.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/66216iE73D31EC9C6A2EFF/image-dimensions/600x87?v=v2" width="600" height="87" role="button" title="Etoo12121_1-1638219615976.png" alt="Etoo12121_1-1638219615976.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here is the code I currently have:&lt;/P&gt;
&lt;P&gt;proc report data=Test;&lt;BR /&gt;columns visit Groups, adlscore_: ;&lt;BR /&gt;define visit / 'Visit' group ;&lt;BR /&gt;define adlscore_N / ANALYSIS "N" Spacing=2;&lt;BR /&gt;define adlscore_Mean / analysis "Mean" format=6.2 Spacing=2; &lt;BR /&gt;define ADLSCORE_StdDev / analysis "SD" format=6.2 Spacing=2; &lt;BR /&gt;define ADLSCORE_LCLM / analysis "L95%CI" format=6.2 Spacing=2; &lt;BR /&gt;define ADLSCORE_UCLM / analysis "U95%CI" format=6.2 Spacing=2; &lt;BR /&gt;define ADLSCORE_Median /analysis "Median" format=6.2 Spacing=2; &lt;BR /&gt;define ADLSCORE_Min / analysis "Min" format=6.2 Spacing=2; &lt;BR /&gt;define ADLSCORE_Max / analysis "Max" format=6.2; &lt;BR /&gt;define groups / across&amp;nbsp; ;&lt;/P&gt;
&lt;P&gt;endcomp;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is how the output should look&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Etoo12121_3-1638220188176.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/66218i69CB2A5794BE2C6E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Etoo12121_3-1638220188176.png" alt="Etoo12121_3-1638220188176.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 22:22:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modifying-Proc-Report/m-p/783035#M249628</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-11-29T22:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying Proc Report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modifying-Proc-Report/m-p/783050#M249636</link>
      <description>Proc tabulate would be great but I have table shells I must follow. The final output has 4 weeks in the Visit column so the table bleeds out onto another page when I output into rtf using ODS. I must have the entire table on one page so using tabulate isn't my best option. Anyway I can calculate the same descriptive stats in proc report if I use the raw data?&lt;BR /&gt;&lt;BR /&gt;Something like this:&lt;BR /&gt;proc report data=Test;&lt;BR /&gt;columns visit Groups, adlscore_: ;&lt;BR /&gt;define visit / 'Visit' group ;&lt;BR /&gt;define adlscore / ANALYSIS N Spacing=2;&lt;BR /&gt;define adlscore / analysis Mean format=6.2 Spacing=2;&lt;BR /&gt;define adlscore / analysis Std format=6.2 Spacing=2;&lt;BR /&gt;define adlscore / analysis CLM format=6.2 Spacing=2;&lt;BR /&gt;define adlscore / analysis Median format=6.2 Spacing=2;&lt;BR /&gt;define adlscore / analysis Min format=6.2 Spacing=2;&lt;BR /&gt;define adlscore / analysis Max format=6.2;&lt;BR /&gt;define groups / across  ;&lt;BR /&gt;&lt;BR /&gt;endcomp;&lt;BR /&gt;run;</description>
      <pubDate>Tue, 30 Nov 2021 00:24:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modifying-Proc-Report/m-p/783050#M249636</guid>
      <dc:creator>Etoo12121</dc:creator>
      <dc:date>2021-11-30T00:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying Proc Report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modifying-Proc-Report/m-p/783051#M249637</link>
      <description>&lt;P&gt;Not sure I follow&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 00:24:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modifying-Proc-Report/m-p/783051#M249637</guid>
      <dc:creator>Etoo12121</dc:creator>
      <dc:date>2021-11-30T00:24:31Z</dc:date>
    </item>
  </channel>
</rss>

