<?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 Univariate help for a newbie in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Univariate-help-for-a-newbie/m-p/454007#M69928</link>
    <description>&lt;P&gt;You can't just say "it didn't work". You have to give us details. You have to show us the SASLOG and the data set created, and explain why this is not the proper result.&lt;/P&gt;</description>
    <pubDate>Fri, 13 Apr 2018 17:56:25 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2018-04-13T17:56:25Z</dc:date>
    <item>
      <title>Proc Univariate help for a newbie</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Univariate-help-for-a-newbie/m-p/453685#M69884</link>
      <description>&lt;P&gt;I'm working with a very large dataset and it has a MONTH variable from 1-12,&lt;/P&gt;&lt;P&gt;and also a VALUE variable, with amounts possible for each month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to determine mean, median, etc. for a yearly (annual) amount,&lt;/P&gt;&lt;P&gt;summing each person's (observation) for 2 months of values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What's the easiest way for a noob to do this?&lt;/P&gt;&lt;P&gt;Thanks in advance...&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2018 18:06:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Univariate-help-for-a-newbie/m-p/453685#M69884</guid>
      <dc:creator>mikeed</dc:creator>
      <dc:date>2018-04-12T18:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Univariate help for a newbie</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Univariate-help-for-a-newbie/m-p/453686#M69885</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;I would like to determine mean, median, etc. for a yearly (annual) amount,&lt;/P&gt;
&lt;P&gt;summing each person's (observation) for 2 months of values.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I''m afraid I'm not able to comprehend this part of the request. The top line makes perfect sense, but not in combination with the second line, which is rather cryptic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please show us a small amount of this data, and explain what results you'd like from this small amount of data.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2018 18:10:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Univariate-help-for-a-newbie/m-p/453686#M69885</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-04-12T18:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Univariate help for a newbie</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Univariate-help-for-a-newbie/m-p/453691#M69887</link>
      <description>&lt;P&gt;sorry, typo. all 12 months.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;each person has a unique ID and MONTHCODE variable from 1-12.&lt;/P&gt;&lt;P&gt;I want to sum the VALUEs of MONTHCODE1-12 for each person, then determine mean/median annual VALUE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2018 18:20:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Univariate-help-for-a-newbie/m-p/453691#M69887</guid>
      <dc:creator>mikeed</dc:creator>
      <dc:date>2018-04-12T18:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Univariate help for a newbie</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Univariate-help-for-a-newbie/m-p/453693#M69888</link>
      <description>&lt;P&gt;I tend to use PROC SUMMARY for this, UNIVARIATE would also work but the code would be different&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* UNTESTED CODE */

proc summary data=have;
    class id;
    var value;
    output out=want mean=meanvalue median=medianvalue;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2018 18:24:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Univariate-help-for-a-newbie/m-p/453693#M69888</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-04-12T18:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Univariate help for a newbie</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Univariate-help-for-a-newbie/m-p/453694#M69889</link>
      <description>&lt;P&gt;ID MONTH VALUE&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;65&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;17&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.&amp;nbsp; &amp;nbsp; .&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp;11&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;47&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp;12&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;99&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;55&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;98&lt;/P&gt;&lt;P&gt;&amp;nbsp;.&amp;nbsp; &amp;nbsp; .&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp;11&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 45&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp;12&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 18&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2018 18:23:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Univariate-help-for-a-newbie/m-p/453694#M69889</guid>
      <dc:creator>mikeed</dc:creator>
      <dc:date>2018-04-12T18:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Univariate help for a newbie</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Univariate-help-for-a-newbie/m-p/453696#M69890</link>
      <description>&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;would you be able to provide an example of the proc univariate code I would use?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2018 18:27:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Univariate-help-for-a-newbie/m-p/453696#M69890</guid>
      <dc:creator>mikeed</dc:creator>
      <dc:date>2018-04-12T18:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Univariate help for a newbie</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Univariate-help-for-a-newbie/m-p/453701#M69891</link>
      <description>&lt;P&gt;As I haven't used UNIVARIATE in years, my answer is that I can't, off the top of my head, provide UNIVARIATE code. It probably isn't much different, however you can read &lt;A href="http://documentation.sas.com/?cdcId=pgmmvacdc&amp;amp;cdcVersion=9.4&amp;amp;docsetId=procstat&amp;amp;docsetTarget=procstat_univariate_toc.htm&amp;amp;locale=en" target="_self"&gt;the documentation for PROC UNIVARIATE&lt;/A&gt; and see if you can figure it out.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The other problem is that UNIVARIATE is computing a huge amount of statistics that you haven't requested, and depending on much data you have, this could slow things down dramatically and produce a huge long output file.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2018 18:49:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Univariate-help-for-a-newbie/m-p/453701#M69891</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-04-12T18:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Univariate help for a newbie</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Univariate-help-for-a-newbie/m-p/453721#M69892</link>
      <description>&lt;P&gt;Proc means, summary and univariate use similar processes so either should work for your request.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why is PROC UNIVARIATE 'required'?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a fully worked example of getting summary statistics using PROC MEAN:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/statgeek/SAS-Tutorials/blob/master/proc_means_basic.sas" target="_blank"&gt;https://github.com/statgeek/SAS-Tutorials/blob/master/proc_means_basic.sas&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2018 19:39:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Univariate-help-for-a-newbie/m-p/453721#M69892</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-12T19:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Univariate help for a newbie</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Univariate-help-for-a-newbie/m-p/453886#M69908</link>
      <description>&lt;P&gt;I don't need to use Univariate, but I'm still having difficulty trying to figure out&lt;/P&gt;&lt;P&gt;how to determine the annual values of the summary statistics&amp;nbsp; &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://communities.sas.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Help still requested.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Apr 2018 12:27:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Univariate-help-for-a-newbie/m-p/453886#M69908</guid>
      <dc:creator>mikeed</dc:creator>
      <dc:date>2018-04-13T12:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Univariate help for a newbie</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Univariate-help-for-a-newbie/m-p/453916#M69912</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/204413"&gt;@mikeed&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I don't need to use Univariate, but I'm still having difficulty trying to figure out&lt;/P&gt;
&lt;P&gt;how to determine the annual values of the summary statistics&amp;nbsp; &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://communities.sas.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Help still requested.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If the code I gave is not working properly for you, then please explain what is happening that is wrong, and show us the SASLOG and results. Otherwise, I assume the problem has been solved.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Apr 2018 14:11:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Univariate-help-for-a-newbie/m-p/453916#M69912</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-04-13T14:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Univariate help for a newbie</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Univariate-help-for-a-newbie/m-p/453948#M69913</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/204413"&gt;@mikeed&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;ID MONTH VALUE&lt;/P&gt;
&lt;P&gt;1&amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;65&lt;/P&gt;
&lt;P&gt;1&amp;nbsp; &amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;17&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;.&amp;nbsp; &amp;nbsp; .&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.&lt;/P&gt;
&lt;P&gt;1&amp;nbsp; &amp;nbsp;11&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;47&lt;/P&gt;
&lt;P&gt;1&amp;nbsp; &amp;nbsp;12&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;99&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2&amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;55&lt;/P&gt;
&lt;P&gt;2&amp;nbsp; &amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;98&lt;/P&gt;
&lt;P&gt;&amp;nbsp;.&amp;nbsp; &amp;nbsp; .&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.&lt;/P&gt;
&lt;P&gt;2&amp;nbsp; &amp;nbsp;11&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 45&lt;/P&gt;
&lt;P&gt;2&amp;nbsp; &amp;nbsp;12&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 18&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;NOW provide what the output is supposed to look like for that input.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Apr 2018 15:10:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Univariate-help-for-a-newbie/m-p/453948#M69913</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-04-13T15:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Univariate help for a newbie</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Univariate-help-for-a-newbie/m-p/453953#M69914</link>
      <description>&lt;P&gt;For each ID, I'd would like to add up all the VALUES, from MONTH 1 to MONTH 12, for an annual VALUE.&lt;/P&gt;&lt;P&gt;Then I would like to find summary statistics of annual VALUE for each ID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps this explains it better and it can't be accomplished in a single procedure, and that's my problem?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Apr 2018 15:16:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Univariate-help-for-a-newbie/m-p/453953#M69914</guid>
      <dc:creator>mikeed</dc:creator>
      <dc:date>2018-04-13T15:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Univariate help for a newbie</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Univariate-help-for-a-newbie/m-p/453980#M69921</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/204413"&gt;@mikeed&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;For each ID, I'd would like to add up all the VALUES, from MONTH 1 to MONTH 12, for an annual VALUE.&lt;/P&gt;
&lt;P&gt;Then I would like to find summary statistics of annual VALUE for each ID.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps this explains it better and it can't be accomplished in a single procedure, and that's my problem?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I provided code to do this in a single procedure already in the thread. Why&amp;nbsp;do you discuss this as if it there is no such code?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Apr 2018 16:59:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Univariate-help-for-a-newbie/m-p/453980#M69921</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-04-13T16:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Univariate help for a newbie</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Univariate-help-for-a-newbie/m-p/454001#M69926</link>
      <description>&lt;P&gt;I'm sorry, your code was not detailed enough and did not work since it did not help me&lt;/P&gt;&lt;P&gt;tally the MONTHs that I needed to find the statistics for.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Apr 2018 17:51:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Univariate-help-for-a-newbie/m-p/454001#M69926</guid>
      <dc:creator>mikeed</dc:creator>
      <dc:date>2018-04-13T17:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Univariate help for a newbie</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Univariate-help-for-a-newbie/m-p/454007#M69928</link>
      <description>&lt;P&gt;You can't just say "it didn't work". You have to give us details. You have to show us the SASLOG and the data set created, and explain why this is not the proper result.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Apr 2018 17:56:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Univariate-help-for-a-newbie/m-p/454007#M69928</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-04-13T17:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Univariate help for a newbie</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Univariate-help-for-a-newbie/m-p/454182#M69939</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/204413"&gt;@mikeed&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;For each ID, I'd would like to add up all the VALUES, from MONTH 1 to MONTH 12, for an annual VALUE.&lt;/P&gt;
&lt;P&gt;Then I would like to find summary statistics of annual VALUE for each ID.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps this explains it better and it can't be accomplished in a single procedure, and that's my problem?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes, this is a two step problem so you can simply apply your proc twice.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The first time you're summing for the totals and in the second you're generating your summary statistics of the total value.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can modify the statistics you get and the summary based on the statistics you specify in the PROC MEANS/SUMMARY statements.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You've been provided with multiple samples on how to run it for one, so you should be able to expand it to two sets of data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But regardless, here's one way:&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="Screen Shot 2018-04-14 at 12.30.32 PM.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19812iA51D881AB45CDED2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2018-04-14 at 12.30.32 PM.png" alt="Screen Shot 2018-04-14 at 12.30.32 PM.png" /&gt;&lt;/span&gt;&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="Screen Shot 2018-04-14 at 12.30.52 PM.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19813iFB035981C4FD0961/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2018-04-14 at 12.30.52 PM.png" alt="Screen Shot 2018-04-14 at 12.30.52 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 14 Apr 2018 18:31:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Univariate-help-for-a-newbie/m-p/454182#M69939</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-14T18:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Univariate help for a newbie</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Univariate-help-for-a-newbie/m-p/454206#M69940</link>
      <description>&lt;P&gt;But you don't need two runs of PROC MEANS or PROC SUMMARY to do this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can do it in a single run of PROC SUMMARY by removing the NWAY option, and then you get annual totals for each ID value, &lt;STRONG&gt;and&lt;/STRONG&gt; the total across ALL ID values.&lt;/P&gt;</description>
      <pubDate>Sat, 14 Apr 2018 21:23:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Univariate-help-for-a-newbie/m-p/454206#M69940</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-04-14T21:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Univariate help for a newbie</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Univariate-help-for-a-newbie/m-p/454227#M69943</link>
      <description>&lt;P&gt;The summary statistics wouldn't reflect the annual total though, it would reflect the distribution of the monthly values, not the annual total.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;But you don't need two runs of PROC MEANS or PROC SUMMARY to do this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can do it in a single run of PROC SUMMARY by removing the NWAY option, and then you get annual totals for each ID value, &lt;STRONG&gt;and&lt;/STRONG&gt; the total across ALL ID values.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Apr 2018 01:40:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Univariate-help-for-a-newbie/m-p/454227#M69943</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-15T01:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Univariate help for a newbie</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Univariate-help-for-a-newbie/m-p/454262#M69949</link>
      <description>&lt;P&gt;The mean when _TYPE_=0 is the mean of all the data. It is the annual total. It does not "reflect the distribution of monthly values".&lt;/P&gt;</description>
      <pubDate>Sun, 15 Apr 2018 10:57:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Univariate-help-for-a-newbie/m-p/454262#M69949</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-04-15T10:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Univariate help for a newbie</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Univariate-help-for-a-newbie/m-p/454274#M69950</link>
      <description>&lt;P&gt;It's the mean of the monthly values, not the annual values, so its on a different&amp;nbsp;scale.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't sum the monthly values first, TYPE=_0_ would still be on a monthly scale.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Original question:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;I would like to determine mean, median, etc. for a yearly (annual) amount&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can only think of SQL that would enable it to run in a single step, but since you have a subquery it's not really a single step in my view.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*Different solution, that does it all in one step or seems like it*/
proc sql;
create table want_one_step as
select mean(annual_total) as avg, median(annual_total) as med, std(annual_total) as std
from (select sum(value) as annual_total from have group by id);
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 15 Apr 2018 17:59:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Univariate-help-for-a-newbie/m-p/454274#M69950</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-15T17:59:27Z</dc:date>
    </item>
  </channel>
</rss>

