<?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 run a regression with fixed effect and clustering, but year fixed effect in the result is strange in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/run-a-regression-with-fixed-effect-and-clustering-but-year-fixed/m-p/767308#M243256</link>
    <description>&lt;P&gt;Dear all&lt;/P&gt;&lt;P&gt;I run a regression with both years fixed effect and cluster standard error by firms, the result is below. I found the year fixed effect is so strange, why there are only two years. My data period is from 1990 to 2019. Can someone tell me what's wrong? I wrote down the code here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc surveyreg data=tmp1.dataset; class year;&lt;BR /&gt;cluster permno;&lt;BR /&gt;model future_accuracy = rw3_std varx vary varx*vary L_abnret AbnRet firm_age size lev BTM rw10_std busseg sdret earn year / solution;&lt;BR /&gt;run;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="superclj123_0-1631506603759.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/63528i337B696ECD02BB2C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="superclj123_0-1631506603759.png" alt="superclj123_0-1631506603759.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Also the degree of freedom here is strange, I have 20000 observations in my dataset but the degree of freedom here is only about 1000?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone can help? Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Sep 2021 04:18:44 GMT</pubDate>
    <dc:creator>superclj123</dc:creator>
    <dc:date>2021-09-13T04:18:44Z</dc:date>
    <item>
      <title>run a regression with fixed effect and clustering, but year fixed effect in the result is strange</title>
      <link>https://communities.sas.com/t5/SAS-Programming/run-a-regression-with-fixed-effect-and-clustering-but-year-fixed/m-p/767308#M243256</link>
      <description>&lt;P&gt;Dear all&lt;/P&gt;&lt;P&gt;I run a regression with both years fixed effect and cluster standard error by firms, the result is below. I found the year fixed effect is so strange, why there are only two years. My data period is from 1990 to 2019. Can someone tell me what's wrong? I wrote down the code here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc surveyreg data=tmp1.dataset; class year;&lt;BR /&gt;cluster permno;&lt;BR /&gt;model future_accuracy = rw3_std varx vary varx*vary L_abnret AbnRet firm_age size lev BTM rw10_std busseg sdret earn year / solution;&lt;BR /&gt;run;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="superclj123_0-1631506603759.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/63528i337B696ECD02BB2C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="superclj123_0-1631506603759.png" alt="superclj123_0-1631506603759.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Also the degree of freedom here is strange, I have 20000 observations in my dataset but the degree of freedom here is only about 1000?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone can help? Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 04:18:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/run-a-regression-with-fixed-effect-and-clustering-but-year-fixed/m-p/767308#M243256</guid>
      <dc:creator>superclj123</dc:creator>
      <dc:date>2021-09-13T04:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: run a regression with fixed effect and clustering, but year fixed effect in the result is strang</title>
      <link>https://communities.sas.com/t5/SAS-Programming/run-a-regression-with-fixed-effect-and-clustering-but-year-fixed/m-p/767465#M243317</link>
      <description>&lt;P&gt;Post the LOG from running the code.&lt;/P&gt;
&lt;P&gt;That will indicate how many records are used.&lt;/P&gt;
&lt;P&gt;It may be that only those two years you've shown have non-missing values for ALL of the variables on your model statement. By default any missing value for a variable on a model statement will result result in the record being excluded from the analysis. Which likely impact the degrees of freedom as well.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 16:11:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/run-a-regression-with-fixed-effect-and-clustering-but-year-fixed/m-p/767465#M243317</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-09-13T16:11:49Z</dc:date>
    </item>
  </channel>
</rss>

