<?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: Regression in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Regression/m-p/317673#M69576</link>
    <description>&lt;P&gt;"On average there are 3 observations in the same group. But that is exactly what I need it to be to get my result."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And you want 1 regression per by group?&amp;nbsp;&amp;nbsp; Models won't even be estimated if the by group size does not have 2 more obs than there are independent variiables.&amp;nbsp; What&amp;nbsp; possible use would it be?&lt;/P&gt;</description>
    <pubDate>Thu, 08 Dec 2016 19:14:07 GMT</pubDate>
    <dc:creator>mkeintz</dc:creator>
    <dc:date>2016-12-08T19:14:07Z</dc:date>
    <item>
      <title>Regression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regression/m-p/316310#M69092</link>
      <description>&lt;P&gt;Hi, I really need some help on the BY statement in proc reg.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to regress the impl_volatility on delta variable but I want to do so for every security same ID) on every&amp;nbsp;day t (same date) for securities with the same expiry date (exdate) on that day. In a day, there are different options with different expiry dates. Therefore, I expect to have more than one slope coefficient on same date t.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First I&amp;nbsp;sort the data with&lt;/P&gt;&lt;P&gt;proc sort data=A1;&lt;/P&gt;&lt;P&gt;by cusip exdate date;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second, I run the regression with:&lt;/P&gt;&lt;P&gt;proc reg data=A1 outest=A2;&lt;/P&gt;&lt;P&gt;model impl_volatility=delta;&lt;/P&gt;&lt;P&gt;by cusip exdate date;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, this &amp;nbsp;doesn't work. Can someone please help me out? Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2016 17:18:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regression/m-p/316310#M69092</guid>
      <dc:creator>Kayomole</dc:creator>
      <dc:date>2016-12-02T17:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Regression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regression/m-p/316319#M69095</link>
      <description>&lt;P&gt;You didn't say what is wrong.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you really want to group by cusip/exdate/date?&amp;nbsp;&amp;nbsp; Are there lots of observations with the same cusip/exdate/date for the regression to process?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2016 17:31:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regression/m-p/316319#M69095</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2016-12-02T17:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: Regression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regression/m-p/316324#M69098</link>
      <description>&lt;P&gt;PLEASE describe how it "doesn't work". Do you get an error? No result? Unexpected result - describe what you think the expected result should be.&lt;/P&gt;
&lt;P&gt;Provide data if you want code tested. &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; shows how to turn a SAS dataset into data step code you can post so that we can duplicate your data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2016 16:27:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regression/m-p/316324#M69098</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-12-09T16:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Regression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regression/m-p/316325#M69099</link>
      <description>The code looks okay but it doesn't work for some reason. The problem might be the small number of regressions on with the same cusip/exdate/date. On average there are 3 observations in the same group. But that is exactly what I need it to be to get my result. Is there some other way I can run this regression?</description>
      <pubDate>Fri, 02 Dec 2016 17:54:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regression/m-p/316325#M69099</guid>
      <dc:creator>Kayomole</dc:creator>
      <dc:date>2016-12-02T17:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Regression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regression/m-p/316462#M69158</link>
      <description>&lt;P&gt;I suspect that you actually get into a very long process because of all the graphs that proc reg is making by default (for each BY group).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;proc reg data=A1 outest=A2 plots=none;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Dec 2016 05:05:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regression/m-p/316462#M69158</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-12-03T05:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Regression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regression/m-p/317665#M69575</link>
      <description>&lt;P&gt;Thank you all for your contribution. It is much appreciated. It turns out the code was okay and the problem was the small number of data for regression after grouping with by.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2016 18:30:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regression/m-p/317665#M69575</guid>
      <dc:creator>Kayomole</dc:creator>
      <dc:date>2016-12-08T18:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: Regression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regression/m-p/317673#M69576</link>
      <description>&lt;P&gt;"On average there are 3 observations in the same group. But that is exactly what I need it to be to get my result."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And you want 1 regression per by group?&amp;nbsp;&amp;nbsp; Models won't even be estimated if the by group size does not have 2 more obs than there are independent variiables.&amp;nbsp; What&amp;nbsp; possible use would it be?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2016 19:14:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regression/m-p/317673#M69576</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2016-12-08T19:14:07Z</dc:date>
    </item>
  </channel>
</rss>

