<?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 residuals for all companies in regression model in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/residuals-for-all-companies-in-regression-model/m-p/775707#M246590</link>
    <description>&lt;P&gt;&lt;FONT size="2"&gt;Hello experts, I appreciate any comment on this.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ramin1_0-1634837096658.png" style="width: 748px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64924i600FE029D69FCB00/image-dimensions/748x58?v=v2" width="748" height="58" role="button" title="Ramin1_0-1634837096658.png" alt="Ramin1_0-1634837096658.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;I want to get the residual for each of the companies in my sample by using the above regression model.&amp;nbsp; I am using the following code;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Proc surveyreg Data = want;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;cluster gvkey; *standard error clustered by firm;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;class industry year;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;model I_new=V_P Lev Cash Age Size StR I_new_pre industry year/solution;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;*lsmeans industry year;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;run;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;How I can get the residual for each of the companies? If I include gvkey in class statement, I get standard errors for all companies but I am not sure about it and in that case, I can't use the cluster statement as it shows no memory.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ramin1_1-1634837686588.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64926i9CC405B45075D888/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ramin1_1-1634837686588.png" alt="Ramin1_1-1634837686588.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Oct 2021 17:41:30 GMT</pubDate>
    <dc:creator>Ramin1</dc:creator>
    <dc:date>2021-10-21T17:41:30Z</dc:date>
    <item>
      <title>residuals for all companies in regression model</title>
      <link>https://communities.sas.com/t5/SAS-Programming/residuals-for-all-companies-in-regression-model/m-p/775707#M246590</link>
      <description>&lt;P&gt;&lt;FONT size="2"&gt;Hello experts, I appreciate any comment on this.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ramin1_0-1634837096658.png" style="width: 748px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64924i600FE029D69FCB00/image-dimensions/748x58?v=v2" width="748" height="58" role="button" title="Ramin1_0-1634837096658.png" alt="Ramin1_0-1634837096658.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;I want to get the residual for each of the companies in my sample by using the above regression model.&amp;nbsp; I am using the following code;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Proc surveyreg Data = want;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;cluster gvkey; *standard error clustered by firm;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;class industry year;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;model I_new=V_P Lev Cash Age Size StR I_new_pre industry year/solution;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;*lsmeans industry year;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;run;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;How I can get the residual for each of the companies? If I include gvkey in class statement, I get standard errors for all companies but I am not sure about it and in that case, I can't use the cluster statement as it shows no memory.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ramin1_1-1634837686588.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64926i9CC405B45075D888/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ramin1_1-1634837686588.png" alt="Ramin1_1-1634837686588.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 17:41:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/residuals-for-all-companies-in-regression-model/m-p/775707#M246590</guid>
      <dc:creator>Ramin1</dc:creator>
      <dc:date>2021-10-21T17:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: residuals for all companies in regression model</title>
      <link>https://communities.sas.com/t5/SAS-Programming/residuals-for-all-companies-in-regression-model/m-p/775715#M246591</link>
      <description>&lt;P&gt;You ask for residuals in PROC SURVEYREG by using the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_surveyreg_syntax12.htm" target="_self"&gt;OUTPUT statement&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 17:50:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/residuals-for-all-companies-in-regression-model/m-p/775715#M246591</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-10-21T17:50:18Z</dc:date>
    </item>
  </channel>
</rss>

