<?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 After using the LOCF imputation method in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/After-using-the-LOCF-imputation-method/m-p/468328#M119602</link>
    <description>&lt;P&gt;Hi how to do locf in this way.&lt;/P&gt;&lt;P&gt;data val1;&lt;/P&gt;&lt;P&gt;input visit $10. value ;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;Week 2 1.5&lt;/P&gt;&lt;P&gt;Week 4 2.3&lt;/P&gt;&lt;P&gt;Week 8 3.2&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;how to get this output.&amp;nbsp;&lt;/P&gt;&lt;P&gt;VISIT VALUE&lt;/P&gt;&lt;P&gt;Week 2 1.5&lt;/P&gt;&lt;P&gt;Week 4 2.3&lt;/P&gt;&lt;P&gt;Week 6 2.3&lt;/P&gt;&lt;P&gt;Week 8 3.2&lt;/P&gt;&lt;P&gt;Week 10 3.2&lt;/P&gt;&lt;P&gt;Week 12 3.2&lt;/P&gt;</description>
    <pubDate>Thu, 07 Jun 2018 11:47:57 GMT</pubDate>
    <dc:creator>teja5959</dc:creator>
    <dc:date>2018-06-07T11:47:57Z</dc:date>
    <item>
      <title>After using the LOCF imputation method</title>
      <link>https://communities.sas.com/t5/SAS-Programming/After-using-the-LOCF-imputation-method/m-p/468328#M119602</link>
      <description>&lt;P&gt;Hi how to do locf in this way.&lt;/P&gt;&lt;P&gt;data val1;&lt;/P&gt;&lt;P&gt;input visit $10. value ;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;Week 2 1.5&lt;/P&gt;&lt;P&gt;Week 4 2.3&lt;/P&gt;&lt;P&gt;Week 8 3.2&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;how to get this output.&amp;nbsp;&lt;/P&gt;&lt;P&gt;VISIT VALUE&lt;/P&gt;&lt;P&gt;Week 2 1.5&lt;/P&gt;&lt;P&gt;Week 4 2.3&lt;/P&gt;&lt;P&gt;Week 6 2.3&lt;/P&gt;&lt;P&gt;Week 8 3.2&lt;/P&gt;&lt;P&gt;Week 10 3.2&lt;/P&gt;&lt;P&gt;Week 12 3.2&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2018 11:47:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/After-using-the-LOCF-imputation-method/m-p/468328#M119602</guid>
      <dc:creator>teja5959</dc:creator>
      <dc:date>2018-06-07T11:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: After using the LOCF imputation method</title>
      <link>https://communities.sas.com/t5/SAS-Programming/After-using-the-LOCF-imputation-method/m-p/468329#M119603</link>
      <description>&lt;P&gt;Much the same as your other question:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/visitnum-carry-forward-locf/m-p/468307" target="_blank"&gt;https://communities.sas.com/t5/Base-SAS-Programming/visitnum-carry-forward-locf/m-p/468307&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2018 12:02:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/After-using-the-LOCF-imputation-method/m-p/468329#M119603</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-06-07T12:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: After using the LOCF imputation method</title>
      <link>https://communities.sas.com/t5/SAS-Programming/After-using-the-LOCF-imputation-method/m-p/468334#M119604</link>
      <description>&lt;P&gt;it's not working&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2018 12:17:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/After-using-the-LOCF-imputation-method/m-p/468334#M119604</guid>
      <dc:creator>teja5959</dc:creator>
      <dc:date>2018-06-07T12:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: After using the LOCF imputation method</title>
      <link>https://communities.sas.com/t5/SAS-Programming/After-using-the-LOCF-imputation-method/m-p/468335#M119605</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/127990"&gt;@teja5959&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;it's not working&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This is an extremely unhelpful statement. You'd be pissed if &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/45151"&gt;@RW9&lt;/a&gt; just answered "It's working", and nothing else, eh?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So post your code and your log, and where the result differs from your expectations, so we can test what's "not working".&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2018 12:21:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/After-using-the-LOCF-imputation-method/m-p/468335#M119605</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-06-07T12:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: After using the LOCF imputation method</title>
      <link>https://communities.sas.com/t5/SAS-Programming/After-using-the-LOCF-imputation-method/m-p/468352#M119611</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data val1;
input visit &amp;amp; $10. value ;
cards;
Week 2   1.5
Week 4   2.3
Week 8   3.2
;
run;
data want;
 merge val1 val1(firstobs=2 keep=visit rename=(visit=_visit)) end=last;
 array x{6} $32 _temporary_ ('Week 2' 'Week 4' 'Week 6' 'Week 8' 'Week 10' 'Week 12');
 output;
 do i=whichc(visit,of x{*})+1 to ifn(last,6,whichc(_visit,of x{*})-1);
   visit=x{i};output;
 end;
 drop i _visit;
run;

proc print;run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Jun 2018 13:17:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/After-using-the-LOCF-imputation-method/m-p/468352#M119611</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-06-07T13:17:41Z</dc:date>
    </item>
  </channel>
</rss>

