<?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: Proc Panel with regression weight in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Panel-with-regression-weight/m-p/728725#M35346</link>
    <description>&lt;P&gt;This is just a wild-eyed guess, but you might look into using the INSTRUMENTS statement, with 1/sd defined in the dataset as a variable that gets included via the INSTRUMENTS statement.&amp;nbsp; Best bet would be to follow&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;'s advice and post in the Forecasting community.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
    <pubDate>Wed, 24 Mar 2021 12:18:47 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2021-03-24T12:18:47Z</dc:date>
    <item>
      <title>Proc Panel with regression weight</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Panel-with-regression-weight/m-p/728690#M35342</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a panel dataset with a number of firms over different dates. Assume the left hand side variable in the panel regression is called y. I am trying to run a panel regression using the inverse of the std.dev(y) as regression weight (and include time and firm fixed effects). Could anyone help how I can implement this in SAS?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have been using proc panel to include the time and firm fixed effects as below, and I was hoping to add "weight" option in the code (similar to what we do in proc reg), but it seems there is no such option available for proc panel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc panel data=data PRINTFIXED;
id firm_id date;

model y   =  x1 x2 x3   / fixtwo ;

output out=est residual=residual predicted=predicted;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 08:57:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Panel-with-regression-weight/m-p/728690#M35342</guid>
      <dc:creator>ibsulkim</dc:creator>
      <dc:date>2021-03-24T08:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Panel with regression weight</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Panel-with-regression-weight/m-p/728722#M35345</link>
      <description>Better post it at Forecasting forum too, since proc panel is under SAS/ETS .</description>
      <pubDate>Wed, 24 Mar 2021 12:02:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Panel-with-regression-weight/m-p/728722#M35345</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-03-24T12:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Panel with regression weight</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Panel-with-regression-weight/m-p/728725#M35346</link>
      <description>&lt;P&gt;This is just a wild-eyed guess, but you might look into using the INSTRUMENTS statement, with 1/sd defined in the dataset as a variable that gets included via the INSTRUMENTS statement.&amp;nbsp; Best bet would be to follow&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;'s advice and post in the Forecasting community.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 12:18:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Panel-with-regression-weight/m-p/728725#M35346</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2021-03-24T12:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Panel with regression weight</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Panel-with-regression-weight/m-p/728834#M35349</link>
      <description>&lt;P&gt;PROC PANEL does not support WEIGHT statement as PROC REG does and there is no way to weight observations in estimation in PROC PANEL. However, if your concern is heteroskedasticity and you wanted to correct for heteroskedasticity, then there are alternative options you could consider other than to apply weights. PROC PANEL supports HCCME = option on the MODEL statement which allows you to obtain heteroskedasticity corrected covariance matrix of parameters. This option is discussed in the following section of documentation:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=etsug&amp;amp;docsetTarget=etsug_panel_syntax12.htm&amp;amp;locale=en"&gt;http://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=etsug&amp;amp;docsetTarget=etsug_panel_syntax12.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and details of HCCME:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=etsug&amp;amp;docsetTarget=etsug_panel_details38.htm&amp;amp;locale=en"&gt;http://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=etsug&amp;amp;docsetTarget=etsug_panel_details38.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In addition, SAS/STAT procedure PROC MIXED can also be used to fit some panel data models and PROC MIXED procedure does support WEIGHT statement similar to that in PROC REG. The following usage note provides some example codes to fit fixed and random effects models in PROC MIXED and PROC TSCSREG/PANEL: &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://support.sas.com/kb/22/851.html" target="new"&gt;http://support.sas.com/kb/22/851.html&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;I hope the above information is helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kathleen&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 17:28:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Panel-with-regression-weight/m-p/728834#M35349</guid>
      <dc:creator>STAT_Kathleen</dc:creator>
      <dc:date>2021-03-24T17:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Panel with regression weight</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Panel-with-regression-weight/m-p/728852#M35350</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To build upon the reply of&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/330163"&gt;@STAT_Kathleen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;...&amp;nbsp;&lt;SPAN&gt;if your concern is heteroskedasticity and you wanted to correct for heteroskedasticity, ...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I have just come across this interesting (recent) PROC PANEL usage note:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Usage Note 67322: Heteroscedasticity and cluster correction of standard errors using the PANEL procedure&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://support.sas.com/kb/67/322.html" target="_blank"&gt;67322 - Heteroscedasticity and cluster correction of standard errors using the PANEL procedure (sas.com)&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Koen&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 18:30:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Panel-with-regression-weight/m-p/728852#M35350</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2021-03-24T18:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Panel with regression weight</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Panel-with-regression-weight/m-p/728900#M35351</link>
      <description>Thank you very much Kathleen for prompt help and for sharing the links - they are all very helpful.&lt;BR /&gt;Proc mixed seems a solution in my case, and thanks for the link that directly compares between proc panel and proc mixed.&lt;BR /&gt;&lt;BR /&gt;All the best.</description>
      <pubDate>Wed, 24 Mar 2021 22:15:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Panel-with-regression-weight/m-p/728900#M35351</guid>
      <dc:creator>ibsulkim</dc:creator>
      <dc:date>2021-03-24T22:15:06Z</dc:date>
    </item>
  </channel>
</rss>

