<?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: Proc Expand - Missing observations in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Proc-Expand-Missing-observations/m-p/392857#M2642</link>
    <description>&lt;P&gt;Thanks Reeza. Your reply gave me a clue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The answer is to use proc expand with the option method=step to get the previously missing observation to use field values for the&amp;nbsp;last non-missing observation.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 03 Sep 2017 12:09:29 GMT</pubDate>
    <dc:creator>Bobbe_Stiff</dc:creator>
    <dc:date>2017-09-03T12:09:29Z</dc:date>
    <item>
      <title>Proc Expand - Missing observations</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Proc-Expand-Missing-observations/m-p/392728#M2640</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I want to use Proc Expand to populate missing observations in a dataset indexed by time, that is, Monthly snapshot dates.&lt;/LI&gt;&lt;LI&gt;The dataset has over 100 fields and I want to use proc expand to fill these gaps since I only have to transform fields that need to be changed and all other fields are treated as explained in step 3 below.&lt;/LI&gt;&lt;LI&gt;&lt;U&gt;&lt;STRONG&gt;The challenge is to get Proc Expand to use the field values for the previous record to fill the missing record&lt;/STRONG&gt;&lt;/U&gt;. Proc Expand is using the subsequent record to populate the missing record.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Also attached are the following:&lt;/P&gt;&lt;P&gt;* Output showing my data before and after running proc expand on the data is the piece of code that&lt;/P&gt;</description>
      <pubDate>Sat, 02 Sep 2017 11:23:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Proc-Expand-Missing-observations/m-p/392728#M2640</guid>
      <dc:creator>Bobbe_Stiff</dc:creator>
      <dc:date>2017-09-02T11:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Expand - Missing observations</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Proc-Expand-Missing-observations/m-p/392750#M2641</link>
      <description>&lt;P&gt;Typically PROC TIMESERIES is used to fill gaps.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://gist.github.com/statgeek/07a3708dee1225ceb9d4aa75daab2c52" target="_blank"&gt;https://gist.github.com/statgeek/07a3708dee1225ceb9d4aa75daab2c52&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Sep 2017 14:29:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Proc-Expand-Missing-observations/m-p/392750#M2641</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-09-02T14:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Expand - Missing observations</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Proc-Expand-Missing-observations/m-p/392857#M2642</link>
      <description>&lt;P&gt;Thanks Reeza. Your reply gave me a clue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The answer is to use proc expand with the option method=step to get the previously missing observation to use field values for the&amp;nbsp;last non-missing observation.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Sep 2017 12:09:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Proc-Expand-Missing-observations/m-p/392857#M2642</guid>
      <dc:creator>Bobbe_Stiff</dc:creator>
      <dc:date>2017-09-03T12:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Expand - Missing observations</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Proc-Expand-Missing-observations/m-p/392913#M2643</link>
      <description>&lt;P&gt;Bravo &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/162420"&gt;@Bobbe_Stiff&lt;/a&gt;! Please post your solution code (using the {i} button) to help future users facing the same problem. You can mark your own solution as the correct answer too.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2017 04:08:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Proc-Expand-Missing-observations/m-p/392913#M2643</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2017-09-04T04:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Expand - Missing observations</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Proc-Expand-Missing-observations/m-p/393195#M2646</link>
      <description>&lt;P&gt;Here is the code to use PROC TIMEDATA to fill the time ID gaps using the previous values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data test;&lt;BR /&gt; length claim $3 claims_lodgement_date date_of_injury snapshot_date dev_month_lodge dev_month_injury netcostc netpayc 8;&lt;BR /&gt;format claims_lodgement_date date_of_injury snapshot_date date9. netcostc netpayc dollar10. ;&lt;/P&gt;
&lt;P&gt;format dev_month_lodge dev_month_injury 3.;&lt;BR /&gt;informat claims_lodgement_date date_of_injury snapshot_date date9.;&lt;BR /&gt;infile datalines delimiter=',' dsd;&lt;BR /&gt;input claim claims_lodgement_date date_of_injury snapshot_date dev_month_lodge dev_month_injury netcostc netpayc ;&lt;BR /&gt;put _all_;&lt;BR /&gt;datalines;&lt;BR /&gt;XYZ,01FEB1994,21JUL1993,28FEB1994,0,7,80,80&lt;BR /&gt;XYZ,01FEB1994,21JUL1993,30APR1994,2,9,3961,3961&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc timedata data=test out=step11;&lt;BR /&gt; by claim;&lt;BR /&gt; var claims_lodgement_date date_of_injury Dev_Month_Lodge Dev_Month_Injury netcostc netpayc;&lt;BR /&gt; id snapshot_date interval = month setmissing = prev;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2017 13:03:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Proc-Expand-Missing-observations/m-p/393195#M2646</guid>
      <dc:creator>alexchien</dc:creator>
      <dc:date>2017-09-05T13:03:54Z</dc:date>
    </item>
  </channel>
</rss>

