<?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: Median number of observations and range per year, month, week and day in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Median-number-of-observations-and-range-per-year-month-week-and/m-p/741388#M36029</link>
    <description>&lt;P&gt;You do this by assigning the proper format (daily, weekly, monthly) to the variable date.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc summary data=have nway;
    class date; /* Date has previously been assigned a date format */
    var sim;
    output out=_daily_stats_ median=/autoname;
run;
proc summary data=have nway;
    class date;
    var sim;
    format date weeku6.; /* Weekly format */
    output out=_weekly_stats_ median=/autoname;
run;
proc summary data=have nway;
    class date;
    var sim;
    format date mmyy.; /* Monthly format */
    output out=_monthly_stats_ median=/autoname;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I leave it as a homework assignment for you to figure out how to do this by year.&lt;/P&gt;</description>
    <pubDate>Fri, 14 May 2021 12:04:41 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2021-05-14T12:04:41Z</dc:date>
    <item>
      <title>Median number of observations and range per year, month, week and day</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Median-number-of-observations-and-range-per-year-month-week-and/m-p/741385#M36028</link>
      <description>&lt;P&gt;Hello friend,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to find median (range) of SIM per year, month, week and day from the data below. Any help is much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data have;&lt;BR /&gt;input ID SIM Date : mmddyy12.;&lt;BR /&gt;format date mmddyy10.;&lt;BR /&gt;cards;&lt;BR /&gt;5648 0 1/20/2014&lt;BR /&gt;4489 0 2/20/2016&lt;BR /&gt;4564 2 6/20/2014&lt;BR /&gt;4587 1 8/20/2014&lt;BR /&gt;4578 2 1/20/2014&lt;BR /&gt;5645 9 12/21/2013&lt;BR /&gt;4564 12 11/21/2011&lt;BR /&gt;2587 15 10/21/2017&lt;BR /&gt;4254 7 3/21/2012&lt;BR /&gt;4545 0 3/21/2013&lt;BR /&gt;4587 0 1/22/2015&lt;BR /&gt;6968 0 7/22/2015&lt;BR /&gt;3254 1 5/22/2011&lt;BR /&gt;1215 2 11/22/2011&lt;BR /&gt;5456 5 10/23/2010&lt;BR /&gt;8999 12 1/23/2010&lt;BR /&gt;4555 9 2/23/2012&lt;BR /&gt;7894 8 7/23/2018&lt;BR /&gt;6968 0 2/23/2012&lt;BR /&gt;4455 0 5/23/2016&lt;BR /&gt;8789 2 1/23/2019&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rube&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 11:36:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Median-number-of-observations-and-range-per-year-month-week-and/m-p/741385#M36028</guid>
      <dc:creator>sandrube</dc:creator>
      <dc:date>2021-05-14T11:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Median number of observations and range per year, month, week and day</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Median-number-of-observations-and-range-per-year-month-week-and/m-p/741388#M36029</link>
      <description>&lt;P&gt;You do this by assigning the proper format (daily, weekly, monthly) to the variable date.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc summary data=have nway;
    class date; /* Date has previously been assigned a date format */
    var sim;
    output out=_daily_stats_ median=/autoname;
run;
proc summary data=have nway;
    class date;
    var sim;
    format date weeku6.; /* Weekly format */
    output out=_weekly_stats_ median=/autoname;
run;
proc summary data=have nway;
    class date;
    var sim;
    format date mmyy.; /* Monthly format */
    output out=_monthly_stats_ median=/autoname;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I leave it as a homework assignment for you to figure out how to do this by year.&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 12:04:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Median-number-of-observations-and-range-per-year-month-week-and/m-p/741388#M36029</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-05-14T12:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: Median number of observations and range per year, month, week and day</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Median-number-of-observations-and-range-per-year-month-week-and/m-p/741556#M36035</link>
      <description>&lt;P&gt;Thank you very much for the help!&lt;/P&gt;&lt;P&gt;Completed the home assignment! year4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a wonderful weekend!&lt;/P&gt;&lt;P&gt;Rube&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 20:48:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Median-number-of-observations-and-range-per-year-month-week-and/m-p/741556#M36035</guid>
      <dc:creator>sandrube</dc:creator>
      <dc:date>2021-05-14T20:48:13Z</dc:date>
    </item>
  </channel>
</rss>

