<?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: Randomly generate decimal year. Translate SAS code to R? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Randomly-generate-decimal-year-Translate-SAS-code-to-R/m-p/453390#M284030</link>
    <description>&lt;P&gt;I do, but that I charge for &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Sadly this is not my full time job and I should actually be doing that!&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/132289"&gt;@Cruise&lt;/a&gt; wrote:&lt;BR /&gt;I know &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Reeza consults for R language too &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Apr 2018 22:21:50 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-04-11T22:21:50Z</dc:date>
    <item>
      <title>Randomly generate decimal year. Translate SAS code to R?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Randomly-generate-decimal-year-Translate-SAS-code-to-R/m-p/453370#M284025</link>
      <description>&lt;P&gt;I'm not sure, if I'm allowed to ask this.&lt;/P&gt;&lt;P&gt;I'm trying to translate below program to R code? Can you help? I appreciate your help indeed! Acknowledgement: Reeza helped write rand code below. Thanks Reeza!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data today;
input id age_at_msmt_month dob bmi;
cards;
55 12.0 2002 17.1
55 19.4 2002 15.6
55 31.7 2002 17.1
55 45.5 2002 16.8
55 52.3 2002 17.1
21 10.9 2005 16.5
21 19.2 2005 16.6
21 24.5 2005 15.4
11 8.28 2010 16.3
;

data want;
input id age_at_msmt_month dob bmi dob_decimal;
cards;
55 12.0 2002 17.1 2002.36
55 19.4 2002 15.6 2002.36
55 31.7 2002 17.1 2002.36
55 45.5 2002 16.8 2002.36
55 52.3 2002 17.1 2002.36
21 10.9 2005 16.5 2005.89
21 19.2 2005 16.6 2005.89
21 24.5 2005 15.4 2005.89
11 8.28 2010 16.3 2010.12
;

data want;
set today;
by id ;
retain rand;
if first.id then do;
rand =round( ceil( rand('uniform')*100)/100, 0.01);
end;

dob_rand = dob+rand;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Acknow&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 20:37:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Randomly-generate-decimal-year-Translate-SAS-code-to-R/m-p/453370#M284025</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2018-04-11T20:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Randomly generate decimal year. Translate SAS code to R?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Randomly-generate-decimal-year-Translate-SAS-code-to-R/m-p/453371#M284026</link>
      <description>You're allowed to ask, just unlikely to get an answer. I'd probably post it to an R forum instead.</description>
      <pubDate>Wed, 11 Apr 2018 20:44:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Randomly-generate-decimal-year-Translate-SAS-code-to-R/m-p/453371#M284026</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-11T20:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Randomly generate decimal year. Translate SAS code to R?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Randomly-generate-decimal-year-Translate-SAS-code-to-R/m-p/453372#M284027</link>
      <description>Did Reeza just say "unlikely to get an answer", I think this is the first time you said something like this, you know everything !&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Apr 2018 21:00:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Randomly-generate-decimal-year-Translate-SAS-code-to-R/m-p/453372#M284027</guid>
      <dc:creator>nayakig</dc:creator>
      <dc:date>2018-04-11T21:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Randomly generate decimal year. Translate SAS code to R?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Randomly-generate-decimal-year-Translate-SAS-code-to-R/m-p/453385#M284028</link>
      <description>&lt;P&gt;lol...not by a long shot &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&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/193083"&gt;@nayakig&lt;/a&gt; wrote:&lt;BR /&gt;Did Reeza just say "unlikely to get an answer", I think this is the first time you said something like this, you know everything !&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 22:13:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Randomly-generate-decimal-year-Translate-SAS-code-to-R/m-p/453385#M284028</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-11T22:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Randomly generate decimal year. Translate SAS code to R?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Randomly-generate-decimal-year-Translate-SAS-code-to-R/m-p/453387#M284029</link>
      <description>I know &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Reeza consults for R language too &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Wed, 11 Apr 2018 22:16:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Randomly-generate-decimal-year-Translate-SAS-code-to-R/m-p/453387#M284029</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2018-04-11T22:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: Randomly generate decimal year. Translate SAS code to R?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Randomly-generate-decimal-year-Translate-SAS-code-to-R/m-p/453390#M284030</link>
      <description>&lt;P&gt;I do, but that I charge for &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Sadly this is not my full time job and I should actually be doing that!&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/132289"&gt;@Cruise&lt;/a&gt; wrote:&lt;BR /&gt;I know &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Reeza consults for R language too &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 22:21:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Randomly-generate-decimal-year-Translate-SAS-code-to-R/m-p/453390#M284030</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-11T22:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Randomly generate decimal year. Translate SAS code to R?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Randomly-generate-decimal-year-Translate-SAS-code-to-R/m-p/453401#M284031</link>
      <description>Reeza, do you tutor doctoral students on programming in R for payment? I'm using age-period-cohort modelling for my dissertation project. Let me know if that's what you're familiar with. We can private chat as well if needed.</description>
      <pubDate>Wed, 11 Apr 2018 22:47:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Randomly-generate-decimal-year-Translate-SAS-code-to-R/m-p/453401#M284031</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2018-04-11T22:47:43Z</dc:date>
    </item>
  </channel>
</rss>

