<?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: Rate in Person years in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Rate-in-Person-years/m-p/530216#M5706</link>
    <description>How are you accounting for partial years? If they're in a year at any point are they included?</description>
    <pubDate>Fri, 25 Jan 2019 20:51:11 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-01-25T20:51:11Z</dc:date>
    <item>
      <title>Rate in Person years</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Rate-in-Person-years/m-p/530209#M5699</link>
      <description>&lt;P&gt;If I have a dataset structure like this, how can I code to determine the rate = visits/person years?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN&gt;ID&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN&gt;Total number of Visits&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN&gt;Start Date&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN&gt;End date&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN&gt;15&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN&gt;Jan21,2002&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN&gt;April4,2008&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN&gt;4&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN&gt;Feb6,1991&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN&gt;June8,2015&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN&gt;3&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN&gt;7&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN&gt;June9,1999&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN&gt;July5,2000&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Fri, 25 Jan 2019 20:35:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Rate-in-Person-years/m-p/530209#M5699</guid>
      <dc:creator>learn2</dc:creator>
      <dc:date>2019-01-25T20:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Rate in Person years</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Rate-in-Person-years/m-p/530216#M5706</link>
      <description>How are you accounting for partial years? If they're in a year at any point are they included?</description>
      <pubDate>Fri, 25 Jan 2019 20:51:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Rate-in-Person-years/m-p/530216#M5706</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-01-25T20:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: Rate in Person years</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Rate-in-Person-years/m-p/530219#M5707</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This might help:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input ID Visits Start :$15. End :$15.;
datalines;
1 15 Jan21,2002 April4,2008
;
run;

data want;
set have;
start_date=input(cats(compress(scan(start,1,','),,'a'),substr(start,1,3),scan(start,2,',')),date9.);
end_date=input(cats(compress(scan(end,1,','),,'a'),substr(end,1,3),scan(end,2,',')),date9.);
years=int((end_date-start_date)/365.24);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Please provide your sample data in the form of datastep.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 21:00:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Rate-in-Person-years/m-p/530219#M5707</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2019-01-25T21:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Rate in Person years</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Rate-in-Person-years/m-p/530234#M5712</link>
      <description>&lt;P&gt;What do people usually do for partial years, pretty new to this and kind of unsure of how to go about this&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 21:43:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Rate-in-Person-years/m-p/530234#M5712</guid>
      <dc:creator>learn2</dc:creator>
      <dc:date>2019-01-25T21:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: Rate in Person years</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Rate-in-Person-years/m-p/530285#M5731</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/250795"&gt;@learn2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;What do people usually do for partial years, pretty new to this and kind of unsure of how to go about this&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Person years can change between usage groups possibly even within an organization on a per topic basis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One possible way would be to use the YRDIF function with the two dates in question with the "ACT/ACT" basis as that returns years with a decimal portion.&lt;/P&gt;
&lt;PRE&gt;data example;
   years= yrdif('21MAR1987'd,'17Jul2001'd,'ACT/ACT');
run;&lt;/PRE&gt;
&lt;P&gt;for example returns approximately 14.323 years.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Jan 2019 00:27:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Rate-in-Person-years/m-p/530285#M5731</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-01-26T00:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Rate in Person years</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Rate-in-Person-years/m-p/530349#M5740</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 26 Jan 2019 19:08:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Rate-in-Person-years/m-p/530349#M5740</guid>
      <dc:creator>learn2</dc:creator>
      <dc:date>2019-01-26T19:08:18Z</dc:date>
    </item>
  </channel>
</rss>

