<?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: Summary Statistics in SAS in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Summary-Statistics-in-SAS/m-p/63966#M3032</link>
    <description>If there is a variable in the data set that contains the week, then all you need to do is sort by week and then add BY WEEK; into your PROC FREQ code.</description>
    <pubDate>Wed, 03 Mar 2010 13:08:12 GMT</pubDate>
    <dc:creator>Paige</dc:creator>
    <dc:date>2010-03-03T13:08:12Z</dc:date>
    <item>
      <title>Summary Statistics in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Summary-Statistics-in-SAS/m-p/63965#M3031</link>
      <description>Hello ,&lt;BR /&gt;
&lt;BR /&gt;
I have a monthly data divided into four week period.I wnat to produce the summary stats that contains the information on the no. of units sold of two kinds of LaptopModels FOR EACH WEEK.&lt;BR /&gt;
&lt;BR /&gt;
I used code -&lt;BR /&gt;
&lt;BR /&gt;
PROC FREQ Data = sales;&lt;BR /&gt;
	TABLES LaptopModel * UnitsSold ;&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
where the data sles is the data merged for the two periods time (1/11/2009 – 14/11/2009)  &amp;amp;  (15/11/2009 – 28/11/2009). This code gives me the no. sold over entire month , but I want to have a braekdown for every week of the month.&lt;BR /&gt;
&lt;BR /&gt;
                                  Table of LaptopModel by UnitsSold&lt;BR /&gt;
&lt;BR /&gt;
                             LaptopModel     UnitsSold&lt;BR /&gt;
&lt;BR /&gt;
                             Frequency|&lt;BR /&gt;
                             Percent  |&lt;BR /&gt;
                             Row Pct  |&lt;BR /&gt;
                             Col Pct  |       1|       2|       5|  Total&lt;BR /&gt;
                             ---------+--------+--------+--------+&lt;BR /&gt;
                             AP3965   |    276 |     29 |      7 |    312&lt;BR /&gt;
                                      |  64.94 |   6.82 |   1.65 |  73.41&lt;BR /&gt;
                                      |  88.46 |   9.29 |   2.24 |&lt;BR /&gt;
                                      |  73.60 |  76.32 |  58.33 |&lt;BR /&gt;
                             ---------+--------+--------+--------+&lt;BR /&gt;
                             AT3600   |     99 |      9 |      5 |    113&lt;BR /&gt;
                                      |  23.29 |   2.12 |   1.18 |  26.59&lt;BR /&gt;
                                      |  87.61 |   7.96 |   4.42 |&lt;BR /&gt;
                                      |  26.40 |  23.68 |  41.67 |&lt;BR /&gt;
                             ---------+--------+--------+--------+&lt;BR /&gt;
                             Total         375       38       12      425&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Kindly guide.&lt;BR /&gt;
&lt;BR /&gt;
Regards ,&lt;BR /&gt;
markc</description>
      <pubDate>Wed, 03 Mar 2010 10:43:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Summary-Statistics-in-SAS/m-p/63965#M3031</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-03-03T10:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Summary Statistics in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Summary-Statistics-in-SAS/m-p/63966#M3032</link>
      <description>If there is a variable in the data set that contains the week, then all you need to do is sort by week and then add BY WEEK; into your PROC FREQ code.</description>
      <pubDate>Wed, 03 Mar 2010 13:08:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Summary-Statistics-in-SAS/m-p/63966#M3032</guid>
      <dc:creator>Paige</dc:creator>
      <dc:date>2010-03-03T13:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: Summary Statistics in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Summary-Statistics-in-SAS/m-p/63967#M3033</link>
      <description>A prior post / reply recommended you consider SAS techniques (function like INTNX) to derive a start-of-week variable from which you can generate this type of analysis.  With the new week-start variable, you can app&lt;BR /&gt;
&lt;BR /&gt;
Another pair of functions would be to use the YEAR and WEEK functions to extract these two components from a date-variable to use with your analysis.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/message.jspa?messageID=32184" target="_blank"&gt;http://support.sas.com/forums/message.jspa?messageID=32184&lt;/A&gt;</description>
      <pubDate>Wed, 03 Mar 2010 13:44:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Summary-Statistics-in-SAS/m-p/63967#M3033</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-03-03T13:44:32Z</dc:date>
    </item>
  </channel>
</rss>

