<?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: Panel regression with fixed effects and clustered standard errors in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Panel-regression-with-fixed-effects-and-clustered-standard/m-p/568628#M27993</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/137815"&gt;@reza96&lt;/a&gt;&amp;nbsp;&amp;nbsp;I have a similar requirement for my regression analysis i.e., clustered S.E. at fund level and year fixed effect. Please guide me which code has helped you achieving this objective. Thanks.&lt;/P&gt;&lt;P&gt;What is the purpose of "regression_Weight"?&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jun 2019 05:11:55 GMT</pubDate>
    <dc:creator>Saba1</dc:creator>
    <dc:date>2019-06-25T05:11:55Z</dc:date>
    <item>
      <title>Panel regression with fixed effects and clustered standard errors</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Panel-regression-with-fixed-effects-and-clustered-standard/m-p/373023#M20637</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;am using the&amp;nbsp;SAS 9.4 edition and I&amp;nbsp;would like to conduct the following panel regression : trade_{i,j,t} = Intercept + B1 * flow_{i,t} + …. Epsilon_{i,t}. The dependent variable represents the percentage change in stock holding of fund i in stock j at quarter-end t relative to time t-1, flow_{i,t} is the capital flow in/out of fund i at quarter-end t.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which procedure do I need to use to estimate this regression which includes fixed effects at each quarter-end t and which clusters standard errors at the fund level i?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Below is the code I am using now, which only clusters standard errors at the fund level. Thanks in advance for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;proc&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;surveyreg&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;= partial_scaling; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;cluster&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; fund;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;weight&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; regression_weight;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;model&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; perc_delta_shares = next_qpercflow / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ADJRSQ&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;solution&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;quit&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Reza&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 14:45:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Panel-regression-with-fixed-effects-and-clustered-standard/m-p/373023#M20637</guid>
      <dc:creator>reza96</dc:creator>
      <dc:date>2017-07-04T14:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Panel regression with fixed effects and clustered standard errors</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Panel-regression-with-fixed-effects-and-clustered-standard/m-p/433547#M22812</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;although presumably you will no longer be in need of an answer, as search machines might redirect someone considering the same issue (well, at least me) to this place:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc	surveyreg
	data					=	partial&lt;FONT size="2"&gt;&lt;FONT face="Courier New"&gt;_scaling&lt;/FONT&gt;&lt;/FONT&gt;;
	cluster						fund;
	class						quarter_end;
	weight						regression_weight;
	model
	perc_delta_shares		=	next_qperfclow	quarter_end
								/
								ADJRSQ
								solution;
quit;	&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For a large number of fixed effects, I suggest &lt;A href="https://blogs.sas.com/content/iml/2013/05/24/turn-off-ods-for-simulations.html" target="_self"&gt;this macro&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yours sincerely,&lt;/P&gt;&lt;P&gt;Sinistrum&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 14:53:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Panel-regression-with-fixed-effects-and-clustered-standard/m-p/433547#M22812</guid>
      <dc:creator>Sinistrum</dc:creator>
      <dc:date>2018-02-02T14:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: Panel regression with fixed effects and clustered standard errors</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Panel-regression-with-fixed-effects-and-clustered-standard/m-p/496662#M25708</link>
      <description>&lt;P&gt;what de you mean by&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;regression_weight&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 18:16:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Panel-regression-with-fixed-effects-and-clustered-standard/m-p/496662#M25708</guid>
      <dc:creator>sasphd</dc:creator>
      <dc:date>2018-09-18T18:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Panel regression with fixed effects and clustered standard errors</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Panel-regression-with-fixed-effects-and-clustered-standard/m-p/568628#M27993</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/137815"&gt;@reza96&lt;/a&gt;&amp;nbsp;&amp;nbsp;I have a similar requirement for my regression analysis i.e., clustered S.E. at fund level and year fixed effect. Please guide me which code has helped you achieving this objective. Thanks.&lt;/P&gt;&lt;P&gt;What is the purpose of "regression_Weight"?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2019 05:11:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Panel-regression-with-fixed-effects-and-clustered-standard/m-p/568628#M27993</guid>
      <dc:creator>Saba1</dc:creator>
      <dc:date>2019-06-25T05:11:55Z</dc:date>
    </item>
  </channel>
</rss>

