<?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: Rolling window regression for one company in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Rolling-window-regression-for-one-company/m-p/931102#M366321</link>
    <description>&lt;P&gt;Dear PaigeMiller,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your information. However, I really cannot find anything solving the different companies issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jun 2024 11:08:42 GMT</pubDate>
    <dc:creator>Whitepepper</dc:creator>
    <dc:date>2024-06-06T11:08:42Z</dc:date>
    <item>
      <title>Rolling window regression for one company</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rolling-window-regression-for-one-company/m-p/931097#M366318</link>
      <description>&lt;P&gt;Dear community,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have trouble when I try to write code for rolling window regression for a company. I need to get the estimate for each company within a rolling window of 60-month. I searched for the belowing solution, but it ignores different companies. For example, the last observations of first company A will be computed into the second company B.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I NEED is for each company, the rolling window regression is computed from the beginning.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help me to solve this issue, I need improvement for the code. Let the code tell different company when it goes through the rolling window.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards!!!!!!!!!!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATA rwin / view=rwin;&lt;/P&gt;&lt;P&gt;ws = 60;&lt;BR /&gt;nwin = nrecs - ws +1;&lt;BR /&gt;do w=1 to nwin;&lt;BR /&gt;do p=w to w + ws -1;&lt;BR /&gt;set part1 point=p nobs=nrecs;&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2024 09:57:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rolling-window-regression-for-one-company/m-p/931097#M366318</guid>
      <dc:creator>Whitepepper</dc:creator>
      <dc:date>2024-06-06T09:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling window regression for one company</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rolling-window-regression-for-one-company/m-p/931100#M366319</link>
      <description>&lt;P&gt;Go to your favorite interent search engine, type in&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;rolling window regression in sas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and you will find lots of code that has already been written for this problem.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2024 11:03:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rolling-window-regression-for-one-company/m-p/931100#M366319</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-06-06T11:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling window regression for one company</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rolling-window-regression-for-one-company/m-p/931102#M366321</link>
      <description>&lt;P&gt;Dear PaigeMiller,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your information. However, I really cannot find anything solving the different companies issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2024 11:08:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rolling-window-regression-for-one-company/m-p/931102#M366321</guid>
      <dc:creator>Whitepepper</dc:creator>
      <dc:date>2024-06-06T11:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling window regression for one company</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rolling-window-regression-for-one-company/m-p/931107#M366325</link>
      <description>&lt;P&gt;Seems like the &lt;A href="https://communities.sas.com/t5/SAS-Programming/Regressions-for-rolling-window-for-each-company/td-p/712006" target="_self"&gt;other thread on this topic&lt;/A&gt;, which you posted in, contains specific code to do this. But I also see a Google search contains other links which also have code for the multiple company part of the problem.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2024 11:54:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rolling-window-regression-for-one-company/m-p/931107#M366325</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-06-06T11:54:29Z</dc:date>
    </item>
  </channel>
</rss>

