<?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: Build recursive data for forecasting in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Build-recursive-data-for-forecasting/m-p/409556#M2775</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/172685"&gt;@Yamani&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3- I have already posted a sample data and my code in the other forum but you replied that &lt;EM&gt;"you don't have time to work&amp;nbsp;on something this complex"!&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your help.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You're exactly correct, I'm not going to take the time to download your excel file and write import steps, and then write a macro to do rolling regression. If you provide data in an easy to use format where I can copy and paste it directly into SAS, that means I may have time to actually work with it, here's instructions on how to do that:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you looked into PROC EXPAND&amp;nbsp; which may be able to calculate the SSCP (sp?) approach mentioned by someone else? Or at least the values you'd need to calculate that? It ends up being a manual regression each line That solution is beyond me, I'd write a macro to loop through the data. It's not as efficient, but it didn't sound like you have a massive data set.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/etsug/63939/HTML/default/viewer.htm#etsug_expand_sect026.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/etsug/63939/HTML/default/viewer.htm#etsug_expand_sect026.htm&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Nov 2017 17:32:25 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-11-01T17:32:25Z</dc:date>
    <item>
      <title>Build recursive data for forecasting</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Build-recursive-data-for-forecasting/m-p/409483#M2766</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to build data to be used for recursive regression.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 10 countries with each country has 239 months of data,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want the following collection of 98 recursive windows for EACH country, as follows:&lt;/P&gt;&lt;P&gt;Country 1:&lt;/P&gt;&lt;P&gt;Window 1 has the first 141 observations (first 141 months)&lt;/P&gt;&lt;P&gt;Window 2 has the first 142 observations (first 142 months)&lt;/P&gt;&lt;P&gt;Window 3 has the first 143 observations (first 141 months)&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Window 98 has the first 239 observations (first 239 months: and this is the full sample period)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Country 2:&lt;/P&gt;&lt;P&gt;Window 1 has the first 141 observations (first 141 months)&lt;/P&gt;&lt;P&gt;Window 2 has the first 142 observations (first 142 months)&lt;/P&gt;&lt;P&gt;Window 3 has the first 143 observations (first 141 months)&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Window 98 has the first 239 observations (first 239 months: and this is the full sample period)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;an so on.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know how to build the above data set. Any help will be appreciated. Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 14:38:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Build-recursive-data-for-forecasting/m-p/409483#M2766</guid>
      <dc:creator>Yamani</dc:creator>
      <dc:date>2017-11-01T14:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Build recursive data for forecasting</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Build-recursive-data-for-forecasting/m-p/409547#M2769</link>
      <description>&lt;P&gt;1, Post sample data&lt;/P&gt;
&lt;P&gt;2. Post what you've tried.&lt;/P&gt;
&lt;P&gt;3. Reposting the same question multiple times isn't going to really change the responses.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 17:10:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Build-recursive-data-for-forecasting/m-p/409547#M2769</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-01T17:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Build recursive data for forecasting</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Build-recursive-data-for-forecasting/m-p/409552#M2773</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1- I am attaching my sample data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2- Here is the code I am using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;data roll;&lt;/P&gt;&lt;P&gt;set developingrank;&lt;/P&gt;&lt;P&gt;i=1;do while(i&amp;lt;=141);&lt;/P&gt;&lt;P&gt;output;&lt;/P&gt;&lt;P&gt;rankdate=intnx('month', date, 0)-1;&lt;/P&gt;&lt;P&gt;i=i+1;;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;*Note: The "trick" which I want to add in the above code is &lt;STRONG&gt;to pass through the data (ending date) once&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3- I have already posted a sample data and my code in the other forum but you replied that &lt;EM&gt;"you don't have time to work&amp;nbsp;on something this complex"!&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 17:23:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Build-recursive-data-for-forecasting/m-p/409552#M2773</guid>
      <dc:creator>Yamani</dc:creator>
      <dc:date>2017-11-01T17:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Build recursive data for forecasting</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Build-recursive-data-for-forecasting/m-p/409556#M2775</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/172685"&gt;@Yamani&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3- I have already posted a sample data and my code in the other forum but you replied that &lt;EM&gt;"you don't have time to work&amp;nbsp;on something this complex"!&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your help.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You're exactly correct, I'm not going to take the time to download your excel file and write import steps, and then write a macro to do rolling regression. If you provide data in an easy to use format where I can copy and paste it directly into SAS, that means I may have time to actually work with it, here's instructions on how to do that:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you looked into PROC EXPAND&amp;nbsp; which may be able to calculate the SSCP (sp?) approach mentioned by someone else? Or at least the values you'd need to calculate that? It ends up being a manual regression each line That solution is beyond me, I'd write a macro to loop through the data. It's not as efficient, but it didn't sound like you have a massive data set.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/etsug/63939/HTML/default/viewer.htm#etsug_expand_sect026.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/etsug/63939/HTML/default/viewer.htm#etsug_expand_sect026.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 17:32:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Build-recursive-data-for-forecasting/m-p/409556#M2775</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-01T17:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: Build recursive data for forecasting</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Build-recursive-data-for-forecasting/m-p/409565#M2776</link>
      <description>Reeza, thanks for your willing to help.&lt;BR /&gt;&lt;BR /&gt;I tried something else suggested by other user in the other forum. Thanks again.&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Nov 2017 17:46:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Build-recursive-data-for-forecasting/m-p/409565#M2776</guid>
      <dc:creator>Yamani</dc:creator>
      <dc:date>2017-11-01T17:46:35Z</dc:date>
    </item>
  </channel>
</rss>

