<?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: Intern - How to compare two rates in SAS - Need Help, Please in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Intern-How-to-compare-two-rates-in-SAS-Need-Help-Please/m-p/375728#M276522</link>
    <description>&lt;P&gt;Thanks for the link! Definitely going to look in there. I think I figured out how to format my date correctly with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;have;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;informat&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;date&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;mmddyy10.&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;format&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;date&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;mmddyy10.&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;input&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;date;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;cards&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;01/31/2012&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;want;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;set&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;have;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ndate=put(date,&lt;/SPAN&gt;&lt;SPAN&gt;mmddyyn.&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;print&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think my question now is how can I create a visual aid for the number of entries by each week? My starting date is 06/01/2017 and I have to count the number of entries received by each week.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jul 2017 15:09:04 GMT</pubDate>
    <dc:creator>ogarduno</dc:creator>
    <dc:date>2017-07-13T15:09:04Z</dc:date>
    <item>
      <title>Intern - How to compare two rates in SAS - Need Help, Please</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Intern-How-to-compare-two-rates-in-SAS-Need-Help-Please/m-p/375712#M276520</link>
      <description>&lt;P&gt;Hi, I have a semester's worth of knowledge on SAS and picked up an internship at a state health department so my background&amp;nbsp;in SAS needs a refresher. My first project is comparing the number of forms received this year (electronically received) to last years (received by mail). They would like for me to compare by week to week number of entries received for each year. The dates received have been put into excel by mm//dd/yyy. I have full flexibility for presentation so I was thinking of comparing the rates by numbers and visually with a histogram.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question: How do I convert mm/dd/yyyy to a numerical variable and record the number of forms received weekly?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 14:47:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Intern-How-to-compare-two-rates-in-SAS-Need-Help-Please/m-p/375712#M276520</guid>
      <dc:creator>ogarduno</dc:creator>
      <dc:date>2017-07-13T14:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Intern - How to compare two rates in SAS - Need Help, Please</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Intern-How-to-compare-two-rates-in-SAS-Need-Help-Please/m-p/375716#M276521</link>
      <description>&lt;P&gt;You can find a lot of SAS tutorials here&lt;/P&gt;
&lt;P&gt;&lt;A href="http://video.sas.com/#category/videos/how-to-tutorials" target="_blank"&gt;http://video.sas.com/#category/videos/how-to-tutorials&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is your data already in SAS? If so, run a proc contents and post that and hightlight which variables are the ones that you need help with.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise first get your data into SAS using PROC IMPORT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/153898"&gt;@ogarduno&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi, I have a semester's worth of knowledge on SAS and picked up an internship at a state health department so my background&amp;nbsp;in SAS needs a refresher. My first project is comparing the number of forms received this year (electronically received) to last years (received by mail). They would like for me to compare by week to week number of entries received for each year. The dates received have been put into excel by mm//dd/yyy. I have full flexibility for presentation so I was thinking of comparing the rates by numbers and visually with a histogram.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My question: How do I convert mm/dd/yyyy to a numerical variable and record the number of forms received weekly?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 15:22:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Intern-How-to-compare-two-rates-in-SAS-Need-Help-Please/m-p/375716#M276521</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-07-13T15:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: Intern - How to compare two rates in SAS - Need Help, Please</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Intern-How-to-compare-two-rates-in-SAS-Need-Help-Please/m-p/375728#M276522</link>
      <description>&lt;P&gt;Thanks for the link! Definitely going to look in there. I think I figured out how to format my date correctly with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;have;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;informat&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;date&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;mmddyy10.&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;format&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;date&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;mmddyy10.&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;input&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;date;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;cards&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;01/31/2012&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;want;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;set&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;have;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ndate=put(date,&lt;/SPAN&gt;&lt;SPAN&gt;mmddyyn.&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;print&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think my question now is how can I create a visual aid for the number of entries by each week? My starting date is 06/01/2017 and I have to count the number of entries received by each week.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 15:09:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Intern-How-to-compare-two-rates-in-SAS-Need-Help-Please/m-p/375728#M276522</guid>
      <dc:creator>ogarduno</dc:creator>
      <dc:date>2017-07-13T15:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: Intern - How to compare two rates in SAS - Need Help, Please</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Intern-How-to-compare-two-rates-in-SAS-Need-Help-Please/m-p/375733#M276523</link>
      <description>&lt;P&gt;Use PROC FREQ with a format for your date.&lt;/P&gt;
&lt;P&gt;You can find the correct formats here:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=have;
table date/out=want;
format date weeku3.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/153898"&gt;@ogarduno&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Thanks for the link! Definitely going to look in there. I think I figured out how to format my date correctly with:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;have;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;informat&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;date&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;mmddyy10.&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;format&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;date&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;mmddyy10.&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;input&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;date;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;cards&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;01/31/2012&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;want;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;set&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;have;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;ndate=put(date,&lt;/SPAN&gt;&lt;SPAN&gt;mmddyyn.&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;print&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think my question now is how can I create a visual aid for the number of entries by each week? My starting date is 06/01/2017 and I have to count the number of entries received by each week.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 15:22:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Intern-How-to-compare-two-rates-in-SAS-Need-Help-Please/m-p/375733#M276523</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-07-13T15:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Intern - How to compare two rates in SAS - Need Help, Please</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Intern-How-to-compare-two-rates-in-SAS-Need-Help-Please/m-p/375744#M276524</link>
      <description>&lt;P&gt;I agree with &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;that a format is the most likely way to group date items though SAS has not supplied a format that would include Year information and week in a nice form. But they allow you to create a custom format, something you may not have been exposed to previously, that allows providing a more flexible appearance. Here is an example showing Year and week of year combined.&lt;/P&gt;
&lt;PRE&gt;Proc format library=work;
picture Yearwk  (default=7)
low-high = '%Y-%0W' (datatype=Date);
run;

data example;
   input dd mmddyy10.;
datalines;
01/05/2017
10/06/2016
07/21/2015
;
run;

proc print data=example;
   format dd YearWk.;
run;&lt;/PRE&gt;
&lt;P&gt;The - in the &lt;FONT face="SAS Monospace" size="2"&gt;low-high = &lt;/FONT&gt;&lt;FONT color="#800080" face="SAS Monospace" size="2"&gt;'%Y-%0W'&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt; (&lt;/FONT&gt;&lt;FONT color="#0000ff" face="SAS Monospace" size="2"&gt;datatype&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;=Date) is there as a visual separator, any character could be used. The 0 is to have single digit weeks prefixed with a 0 sort could be maintained as needed.&amp;nbsp;Note that documentation for Proc Format includes other directives, the funny %Y and %W bits. The case of the letters is important so pay attention.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 15:56:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Intern-How-to-compare-two-rates-in-SAS-Need-Help-Please/m-p/375744#M276524</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-07-13T15:56:57Z</dc:date>
    </item>
  </channel>
</rss>

