<?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: calculate means in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/calculate-means/m-p/1537#M690</link>
    <description>Note the revised code below:&lt;BR /&gt;
&lt;BR /&gt;
proc means nway mean;&lt;BR /&gt;
class day;&lt;BR /&gt;
var depth;&lt;BR /&gt;
output out=new mean= / autoname;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc print data=new;&lt;BR /&gt;
run;</description>
    <pubDate>Wed, 11 Oct 2006 11:56:30 GMT</pubDate>
    <dc:creator>Kathryn_SAS</dc:creator>
    <dc:date>2006-10-11T11:56:30Z</dc:date>
    <item>
      <title>calculate means</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/calculate-means/m-p/1535#M688</link>
      <description>Hi!&lt;BR /&gt;
&lt;BR /&gt;
I think this is a simple question, but I cannot find the answer.  Here is what I have:&lt;BR /&gt;
&lt;BR /&gt;
day     depth&lt;BR /&gt;
1         50&lt;BR /&gt;
1         58&lt;BR /&gt;
1         72&lt;BR /&gt;
2         46&lt;BR /&gt;
2         78&lt;BR /&gt;
2         34&lt;BR /&gt;
2         75&lt;BR /&gt;
etc...&lt;BR /&gt;
&lt;BR /&gt;
How can I calculate a single value (mean of each depth value) for each day?&lt;BR /&gt;
&lt;BR /&gt;
thank you!&lt;BR /&gt;
ES</description>
      <pubDate>Tue, 10 Oct 2006 20:37:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/calculate-means/m-p/1535#M688</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2006-10-10T20:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: calculate means</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/calculate-means/m-p/1536#M689</link>
      <description>Try the following:&lt;BR /&gt;
&lt;BR /&gt;
proc means nway mean;&lt;BR /&gt;
class day;&lt;BR /&gt;
var depth;&lt;BR /&gt;
output out=new / autoname;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc print data=new;&lt;BR /&gt;
run;</description>
      <pubDate>Wed, 11 Oct 2006 11:55:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/calculate-means/m-p/1536#M689</guid>
      <dc:creator>Kathryn_SAS</dc:creator>
      <dc:date>2006-10-11T11:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: calculate means</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/calculate-means/m-p/1537#M690</link>
      <description>Note the revised code below:&lt;BR /&gt;
&lt;BR /&gt;
proc means nway mean;&lt;BR /&gt;
class day;&lt;BR /&gt;
var depth;&lt;BR /&gt;
output out=new mean= / autoname;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc print data=new;&lt;BR /&gt;
run;</description>
      <pubDate>Wed, 11 Oct 2006 11:56:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/calculate-means/m-p/1537#M690</guid>
      <dc:creator>Kathryn_SAS</dc:creator>
      <dc:date>2006-10-11T11:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: calculate means</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/calculate-means/m-p/1538#M691</link>
      <description>Perfect!&lt;BR /&gt;
&lt;BR /&gt;
Thank you very much!!!&lt;BR /&gt;
&lt;BR /&gt;
ES</description>
      <pubDate>Wed, 11 Oct 2006 13:20:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/calculate-means/m-p/1538#M691</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2006-10-11T13:20:18Z</dc:date>
    </item>
  </channel>
</rss>

