<?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: Class and Var in proc summary in Programming 1 and 2</title>
    <link>https://communities.sas.com/t5/Programming-1-and-2/Class-and-Var-in-proc-summary/m-p/949578#M1501</link>
    <description>&lt;P&gt;CLASS tells PROC SUMMARY how to divide (some people would say "slice") the data. VAR tells PROC SUMMARY which variables to compute statistics on.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, look at the output of this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc summary data=sashelp.class;
    class sex age;
    var weight height;
    output out=means mean=/autoname;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This finds the mean of weight and height for all values of Sex, it finds the mean of weight and height for all values of Age and it finds the mean of weight and height for all combinations of all values of Sex and Age. It also produces the overall mean for these two variables.&lt;/P&gt;</description>
    <pubDate>Thu, 31 Oct 2024 11:17:34 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2024-10-31T11:17:34Z</dc:date>
    <item>
      <title>Class and Var in proc summary</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Class-and-Var-in-proc-summary/m-p/949573#M1500</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#000000"&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#000000"&gt;&lt;SPAN&gt;What is the primary purpose of the class&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;statement in proc summary&lt;/SPAN&gt;&lt;SPAN&gt;, and how does it differ from the var&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;statement?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 10:29:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Class-and-Var-in-proc-summary/m-p/949573#M1500</guid>
      <dc:creator>samuelhim</dc:creator>
      <dc:date>2024-10-31T10:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: Class and Var in proc summary</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Class-and-Var-in-proc-summary/m-p/949578#M1501</link>
      <description>&lt;P&gt;CLASS tells PROC SUMMARY how to divide (some people would say "slice") the data. VAR tells PROC SUMMARY which variables to compute statistics on.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, look at the output of this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc summary data=sashelp.class;
    class sex age;
    var weight height;
    output out=means mean=/autoname;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This finds the mean of weight and height for all values of Sex, it finds the mean of weight and height for all values of Age and it finds the mean of weight and height for all combinations of all values of Sex and Age. It also produces the overall mean for these two variables.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 11:17:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Class-and-Var-in-proc-summary/m-p/949578#M1501</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-10-31T11:17:34Z</dc:date>
    </item>
  </channel>
</rss>

