<?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: Showing frequencies by week instead of day in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Showing-frequencies-by-week-instead-of-day/m-p/703880#M215723</link>
    <description>&lt;P&gt;Apply one of the &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=leforinforref&amp;amp;docsetTarget=p0bakqri7nhio8n14rlwlmxl1jww.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;YYWEEK&lt;/A&gt; formats to your rdate.&lt;/P&gt;</description>
    <pubDate>Sat, 05 Dec 2020 20:43:06 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-12-05T20:43:06Z</dc:date>
    <item>
      <title>Showing frequencies by week instead of day</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Showing-frequencies-by-week-instead-of-day/m-p/703879#M215722</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running a bunch of frequencies on outcomes by date, and I need the frequencies to appear by date in weeks instead of daily. I need the outcomes to appear with the week date labeled -- for example, "03/15/2020, Outcome X, Outcome Y. "03/22/2020, Outcome, X, Outcome Y', etc. I tried the "week" command (see below), but that just numbers the weeks and doesn't put them into an easy to read format.&lt;/P&gt;&lt;PRE&gt;data covidzip7; 
set covidzip6; 
rdate_wk = week(rdate, 'v'); 
format rdate_wk mmddyy10.; 
run; 

proc freq data = covidzip7; 
tables rdate_wk*race_new*agecat; 
run; &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help? Thanks!&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Dec 2020 20:34:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Showing-frequencies-by-week-instead-of-day/m-p/703879#M215722</guid>
      <dc:creator>claremc</dc:creator>
      <dc:date>2020-12-05T20:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Showing frequencies by week instead of day</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Showing-frequencies-by-week-instead-of-day/m-p/703880#M215723</link>
      <description>&lt;P&gt;Apply one of the &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=leforinforref&amp;amp;docsetTarget=p0bakqri7nhio8n14rlwlmxl1jww.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;YYWEEK&lt;/A&gt; formats to your rdate.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Dec 2020 20:43:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Showing-frequencies-by-week-instead-of-day/m-p/703880#M215723</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-12-05T20:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: Showing frequencies by week instead of day</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Showing-frequencies-by-week-instead-of-day/m-p/703881#M215724</link>
      <description>&lt;P&gt;I assume you want the first day of the week to be used (3/15/2020). This code will turn every date into the first day of the week, using the INTNX function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data covidzip7; 
set covidzip6; 
rdate_wk = intnx('week',rdate,0,'b');
format rdate_wk mmddyy10.; 
run; 
proc freq data = covidzip7; 
tables rdate_wk*race_new*agecat; 
run; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Dec 2020 21:03:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Showing-frequencies-by-week-instead-of-day/m-p/703881#M215724</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-12-05T21:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Showing frequencies by week instead of day</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Showing-frequencies-by-week-instead-of-day/m-p/703884#M215727</link>
      <description>&lt;P&gt;This worked - thank you so much!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Dec 2020 21:36:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Showing-frequencies-by-week-instead-of-day/m-p/703884#M215727</guid>
      <dc:creator>claremc</dc:creator>
      <dc:date>2020-12-05T21:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Showing frequencies by week instead of day</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Showing-frequencies-by-week-instead-of-day/m-p/837488#M331131</link>
      <description>looking for help with my sas homework&lt;BR /&gt;really new to sas and coding&lt;BR /&gt;really need help&lt;BR /&gt;anyone?</description>
      <pubDate>Sat, 08 Oct 2022 00:53:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Showing-frequencies-by-week-instead-of-day/m-p/837488#M331131</guid>
      <dc:creator>MarySasbegginer</dc:creator>
      <dc:date>2022-10-08T00:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Showing frequencies by week instead of day</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Showing-frequencies-by-week-instead-of-day/m-p/837493#M331135</link>
      <description>&lt;P&gt;Start a new thread of your own.&lt;/P&gt;
&lt;P&gt;Describe your issue.&lt;/P&gt;
&lt;P&gt;Post example data in usable form (data step with datalines, you can find thousands ofe xamples here on the communities).&lt;/P&gt;
&lt;P&gt;Show expected results.&lt;/P&gt;
&lt;P&gt;Most importantly, show what you have already tried so far. We are glad to assist when people run into problems, but we won't do others work for free.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need someone to do your work for you, hire a consultant.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Oct 2022 03:43:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Showing-frequencies-by-week-instead-of-day/m-p/837493#M331135</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-10-08T03:43:27Z</dc:date>
    </item>
    <item>
      <title>tutor for homework</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Showing-frequencies-by-week-instead-of-day/m-p/837533#M331163</link>
      <description>&lt;P&gt;Hi Kurt,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't want anyone to do my homework for me, why you assumed that?&lt;/P&gt;&lt;P&gt;But my problem is that we do 2 , 3 chapters a week and no matter how much i tried i always behind.&lt;/P&gt;&lt;P&gt;So in order to do my homework i need to understand how to do it which i don't yet hence asking for help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway thank you for you reply.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Oct 2022 17:30:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Showing-frequencies-by-week-instead-of-day/m-p/837533#M331163</guid>
      <dc:creator>MarySasbegginer</dc:creator>
      <dc:date>2022-10-08T17:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: tutor for homework</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Showing-frequencies-by-week-instead-of-day/m-p/837534#M331164</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/435824"&gt;@MarySasbegginer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Follow the advice given by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt; and people will help you. He said:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;Start a new thread of your own.&lt;/P&gt;
&lt;P&gt;Describe your issue.&lt;/P&gt;
&lt;P&gt;Post example data in usable form (data step with datalines, you can find thousands ofe xamples here on the communities).&lt;/P&gt;
&lt;P&gt;Show expected results.&lt;/P&gt;
&lt;P&gt;Most importantly, show what you have already tried so far.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Sat, 08 Oct 2022 20:52:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Showing-frequencies-by-week-instead-of-day/m-p/837534#M331164</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-10-08T20:52:54Z</dc:date>
    </item>
  </channel>
</rss>

