<?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: thank you in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-MEANS-with-a-BY-group/m-p/628336#M77536</link>
    <description>&lt;P&gt;The output would look slightly different but you can use a CLASS statement instead of BY which will not generate the not sorted by BY variables error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc means strength=have mean std var;
   var s1 s2 s3 s4 s5 s6 s7;
   class program;
run;&lt;/PRE&gt;
&lt;P&gt;If you have large data with lots of values for the class variables there can be performance issues.&lt;/P&gt;</description>
    <pubDate>Fri, 28 Feb 2020 20:47:58 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2020-02-28T20:47:58Z</dc:date>
    <item>
      <title>PROC MEANS with a BY group</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-MEANS-with-a-BY-group/m-p/628110#M77518</link>
      <description>&lt;P&gt;data strength;&lt;BR /&gt;input id program$ s1 s2 s3 s4 s5 s6 s7;&lt;BR /&gt;datalines;&lt;BR /&gt;1 co 81 84 83 83 85 85 85&lt;BR /&gt;2 co 77 78 79 79 81 82 81&lt;BR /&gt;3 co 84 85 87 89 88 85 86&lt;BR /&gt;4 co 74 75 78 78 79 78 78&lt;BR /&gt;5 co 76 77 77 77 77 76 76&lt;BR /&gt;6 co 84 84 86 85 86 86 86&lt;BR /&gt;7 co 79 80 79 80 80 82 82&lt;BR /&gt;8 co 78 78 77 76 75 75 76&lt;BR /&gt;9 co 78 80 77 77 75 75 75&lt;BR /&gt;10 co 84 85 85 85 85 83 82&lt;BR /&gt;11 co 83 83 85 85 86 87 87&lt;BR /&gt;12 RI 79 82 82 83 84 84 82&lt;BR /&gt;13 RI 88 89 91 90 93 93 95&lt;BR /&gt;14 RI 83 83 84 83 84 86 86&lt;BR /&gt;15 RI 81 81 82 82 82 83 85&lt;BR /&gt;16 RI 87 88 90 89 89 91 93&lt;BR /&gt;17 RI 80 82 83 85 86 88 88&lt;BR /&gt;18 RI 82 83 84 84 83 85 87&lt;BR /&gt;19 RI 84 85 85 85 86 88 90&lt;BR /&gt;20 RI 80 80 82 83 83 84 85&lt;BR /&gt;21 RI 85 87 88 88 90 90 91&lt;BR /&gt;22 RI 87 88 88 87 87 86 86&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;proc print data=strength;&lt;BR /&gt;run;&lt;BR /&gt;proc means data=strength mean std var;&lt;BR /&gt;var s1 s2 s3 s4 s5 s6 s7;&lt;BR /&gt;by program;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 13:12:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-MEANS-with-a-BY-group/m-p/628110#M77518</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2020-02-28T13:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: why it does not work</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-MEANS-with-a-BY-group/m-p/628121#M77519</link>
      <description>&lt;P&gt;You have to sort your data appropriately first&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=strength;
    by program;
run;

proc means data=strength mean std var;
    by program;
    var s1 s2 s3 s4 s5 s6 s7;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 28 Feb 2020 07:36:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-MEANS-with-a-BY-group/m-p/628121#M77519</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2020-02-28T07:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: why it does not work</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-MEANS-with-a-BY-group/m-p/628123#M77520</link>
      <description>&lt;P&gt;Maxim 2: Read the Log.&lt;/P&gt;
&lt;P&gt;If it does not give you a clue right away, post it here, using the {i} button.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 07:39:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-MEANS-with-a-BY-group/m-p/628123#M77520</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-02-28T07:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: why it does not work</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-MEANS-with-a-BY-group/m-p/628127#M77521</link>
      <description>&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 07:43:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-MEANS-with-a-BY-group/m-p/628127#M77521</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2020-02-28T07:43:39Z</dc:date>
    </item>
    <item>
      <title>thank you</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-MEANS-with-a-BY-group/m-p/628137#M77524</link>
      <description>&lt;P&gt;thank you&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 08:09:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-MEANS-with-a-BY-group/m-p/628137#M77524</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2020-02-28T08:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: thank you</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-MEANS-with-a-BY-group/m-p/628336#M77536</link>
      <description>&lt;P&gt;The output would look slightly different but you can use a CLASS statement instead of BY which will not generate the not sorted by BY variables error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc means strength=have mean std var;
   var s1 s2 s3 s4 s5 s6 s7;
   class program;
run;&lt;/PRE&gt;
&lt;P&gt;If you have large data with lots of values for the class variables there can be performance issues.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 20:47:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-MEANS-with-a-BY-group/m-p/628336#M77536</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-02-28T20:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: thank you</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-MEANS-with-a-BY-group/m-p/628598#M77560</link>
      <description>&lt;P&gt;thank you&lt;/P&gt;</description>
      <pubDate>Sun, 01 Mar 2020 22:44:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-MEANS-with-a-BY-group/m-p/628598#M77560</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2020-03-01T22:44:53Z</dc:date>
    </item>
  </channel>
</rss>

