<?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 average by month in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/average-by-month/m-p/3509#M3509</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have ratings data for different locations across 2009-2011.&amp;nbsp; The data formatted in two columns =&amp;gt; rating | date&amp;nbsp;&amp;nbsp; e.g. 0.85 | 06/29/2010.&amp;nbsp; How can I average the ratings by month?&amp;nbsp; thanks, Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jun 2011 21:39:58 GMT</pubDate>
    <dc:creator>paulp</dc:creator>
    <dc:date>2011-06-30T21:39:58Z</dc:date>
    <item>
      <title>average by month</title>
      <link>https://community.jmp.com/t5/Discussions/average-by-month/m-p/3509#M3509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have ratings data for different locations across 2009-2011.&amp;nbsp; The data formatted in two columns =&amp;gt; rating | date&amp;nbsp;&amp;nbsp; e.g. 0.85 | 06/29/2010.&amp;nbsp; How can I average the ratings by month?&amp;nbsp; thanks, Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2011 21:39:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/average-by-month/m-p/3509#M3509</guid>
      <dc:creator>paulp</dc:creator>
      <dc:date>2011-06-30T21:39:58Z</dc:date>
    </item>
    <item>
      <title>average by month</title>
      <link>https://community.jmp.com/t5/Discussions/average-by-month/m-p/3510#M3510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are many ways you could do this. You could create a variable that is by month and year and use SQL to do the aggregation or you could do this in a data step with by group processing (assuming you had your month &amp;amp; year variables) or you could simply use proc means.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax will be something like...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc means data=mydata mean; *if you want the default statistics then remove mean here otherwise it will give you the average ratings by month;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var rating;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class date;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; format date monyy7.; *This is to get the 12 month categories for each year;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doing the above avoids having to spend time creating new variables etc and you take advantage of the benefits of using a SAS format for group processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Michelle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2011 01:50:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/average-by-month/m-p/3510#M3510</guid>
      <dc:creator />
      <dc:date>2011-07-01T01:50:33Z</dc:date>
    </item>
    <item>
      <title>average by month</title>
      <link>https://community.jmp.com/t5/Discussions/average-by-month/m-p/3511#M3511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming your columns are called Rating and Date&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;You could add two columns Month and Year with the formulas month(Date) and year(Date) (they are both in the Date Time group) respectively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then do Tables/Summary, Statistics:Mean of Rating and Group:Year and Month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR, Marianne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2011 06:24:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/average-by-month/m-p/3511#M3511</guid>
      <dc:creator>MTOF</dc:creator>
      <dc:date>2011-07-01T06:24:00Z</dc:date>
    </item>
  </channel>
</rss>

