<?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 Forward or backward fill missing values in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Forward-or-backward-fill-missing-values/m-p/428072#M105637</link>
    <description>&lt;P&gt;I'm trying to fill missing values in a sorted set.&amp;nbsp; So if the previous observation is 1 and the next is NULL then it should be 1.&amp;nbsp; Basically I'm trying to replicated the functionality of pandas.DataFrame.fillna(method='ffill').&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jan 2018 16:16:34 GMT</pubDate>
    <dc:creator>tomcmacdonald</dc:creator>
    <dc:date>2018-01-16T16:16:34Z</dc:date>
    <item>
      <title>Forward or backward fill missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Forward-or-backward-fill-missing-values/m-p/428072#M105637</link>
      <description>&lt;P&gt;I'm trying to fill missing values in a sorted set.&amp;nbsp; So if the previous observation is 1 and the next is NULL then it should be 1.&amp;nbsp; Basically I'm trying to replicated the functionality of pandas.DataFrame.fillna(method='ffill').&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 16:16:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Forward-or-backward-fill-missing-values/m-p/428072#M105637</guid>
      <dc:creator>tomcmacdonald</dc:creator>
      <dc:date>2018-01-16T16:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Forward or backward fill missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Forward-or-backward-fill-missing-values/m-p/428085#M105643</link>
      <description>&lt;P&gt;here is a demo:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
do n=1 to 10;
if n in (1,4,7) then k=1;
else k=.;
output;
end;
run;

data want;
set have;
retain _k;
if not missing(k) then _k=k;
else if missing(k) then k=_k;
drop _k;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Jan 2018 16:27:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Forward-or-backward-fill-missing-values/m-p/428085#M105643</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-01-16T16:27:00Z</dc:date>
    </item>
  </channel>
</rss>

