<?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: Fixed effect with clustered standard errors? proc glm? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Fixed-effect-with-clustered-standard-errors-proc-glm/m-p/598191#M76268</link>
    <description>&lt;P&gt;It is because the variance estimation formulas for survey statistics (like in PROC SURVEYREG) are different from the variance estimation formulas in linear modeling. Although the point estimates are the same, the standard errors are not. The survey variance is inflated because you need to account for the sample design.&lt;/P&gt;</description>
    <pubDate>Mon, 21 Oct 2019 17:45:06 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2019-10-21T17:45:06Z</dc:date>
    <item>
      <title>Fixed effect with clustered standard errors? proc glm?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Fixed-effect-with-clustered-standard-errors-proc-glm/m-p/597731#M76247</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was wondering how I can run a fixed-effect regression with standard errors being clustered. I have a panel data of individuals being observed multiple times. I would like to run the regression with the individual fixed effects and standard errors being clustered by individuals. Since I have more than several thousands of individuals, CLASS statement with PROC SURVEYREG is really inefficient, and SAS says insufficient memory. So I don't think I can use PROC SURVEYREG.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can I achieve this using proc glm or proc model? I searched, but didn't find a clear way to do so. Thanks in advance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2019 14:37:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Fixed-effect-with-clustered-standard-errors-proc-glm/m-p/597731#M76247</guid>
      <dc:creator>braam</dc:creator>
      <dc:date>2019-10-18T14:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed effect with clustered standard errors? proc glm?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Fixed-effect-with-clustered-standard-errors-proc-glm/m-p/597734#M76248</link>
      <description>&lt;P&gt;Maybe PROC GLM with a WEIGHT statement?&amp;nbsp;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_glm_syntax25.htm&amp;amp;locale=en"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_glm_syntax25.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the documentation: "&lt;SPAN&gt;If the weights for the observations are proportional to the reciprocals of the error variances, then the weighted least squares estimates are best linear unbiased estimators (BLUE)"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2019 14:40:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Fixed-effect-with-clustered-standard-errors-proc-glm/m-p/597734#M76248</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-10-18T14:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed effect with clustered standard errors? proc glm?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Fixed-effect-with-clustered-standard-errors-proc-glm/m-p/597751#M76249</link>
      <description>Isn't WLS about heteroscedasticity (i.e., variance) while clustering standard errors is about covariance within a unit (having multiple observations)? I think they are two different issues.</description>
      <pubDate>Fri, 18 Oct 2019 15:10:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Fixed-effect-with-clustered-standard-errors-proc-glm/m-p/597751#M76249</guid>
      <dc:creator>braam</dc:creator>
      <dc:date>2019-10-18T15:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed effect with clustered standard errors? proc glm?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Fixed-effect-with-clustered-standard-errors-proc-glm/m-p/597758#M76250</link>
      <description>&lt;P&gt;How are you thinking about including cluster in any model you would fit?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2019 15:38:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Fixed-effect-with-clustered-standard-errors-proc-glm/m-p/597758#M76250</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-10-18T15:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed effect with clustered standard errors? proc glm?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Fixed-effect-with-clustered-standard-errors-proc-glm/m-p/597795#M76252</link>
      <description>I'm not sure if I understand your suggestion.&lt;BR /&gt;&lt;BR /&gt;What I would like to do is to include IDs as fixed effects and get standard errors clustered by IDs at the same time. I know it's possible with PROC SURVEYREG, but when I have many ID values, it's practically impossible. So I'm looking for another procedure.</description>
      <pubDate>Fri, 18 Oct 2019 18:04:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Fixed-effect-with-clustered-standard-errors-proc-glm/m-p/597795#M76252</guid>
      <dc:creator>braam</dc:creator>
      <dc:date>2019-10-18T18:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed effect with clustered standard errors? proc glm?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Fixed-effect-with-clustered-standard-errors-proc-glm/m-p/597798#M76253</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/279507"&gt;@braam&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;... and get standard errors clustered by IDs at the same time.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Now this implies that the standard errors clustered by IDs are the output of the regression. Is that correct? I thought the standard errors were inputs to a regression.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2019 18:11:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Fixed-effect-with-clustered-standard-errors-proc-glm/m-p/597798#M76253</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-10-18T18:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed effect with clustered standard errors? proc glm?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Fixed-effect-with-clustered-standard-errors-proc-glm/m-p/597806#M76254</link>
      <description>Sorry for the confusion. Yes, I would like to 1) have clustered standard errors and 2) include individual-fixed effects.</description>
      <pubDate>Fri, 18 Oct 2019 18:29:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Fixed-effect-with-clustered-standard-errors-proc-glm/m-p/597806#M76254</guid>
      <dc:creator>braam</dc:creator>
      <dc:date>2019-10-18T18:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed effect with clustered standard errors? proc glm?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Fixed-effect-with-clustered-standard-errors-proc-glm/m-p/597807#M76255</link>
      <description>&lt;P&gt;Show us the SURVEYREG code you were thinking of using, even if it doesn't work because there's too many individuals.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2019 18:31:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Fixed-effect-with-clustered-standard-errors-proc-glm/m-p/597807#M76255</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-10-18T18:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed effect with clustered standard errors? proc glm?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Fixed-effect-with-clustered-standard-errors-proc-glm/m-p/597816#M76256</link>
      <description>&lt;P&gt;This is the code that you requested. In this example, having too many values for Origin would make this type of regression really inefficient, which takes more than several hours for my case/data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The below is GLM code where I cannot cluster standard errors. I also absorb Origin, rather than estimating its fixed effects. I actually expected the same coefficients on Cylinders from these two approaches, but they are not, which is strange to me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc surveyreg data= sashelp.cars;
	cluster Origin;
	class Origin Type;
	model EngineSize= Cylinders Origin Type/ solution;
	run;

proc glm data= sashelp.cars;
	absorb Origin;
	class Type;
	model EngineSize= Cylinders Type/ solution;
	run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;DIV class="branch"&gt;
&lt;DIV align="center"&gt;SURVEYREG RESULT&lt;BR /&gt;
&lt;TABLE class="table" summary="Procedure Surveyreg: Estimated Regression Coefficients" frame="box" rules="all" cellspacing="0" cellpadding="5"&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="c b header" colspan="5" scope="colgroup"&gt;
&lt;P&gt;Estimated Regression Coefficients&lt;/P&gt;
&lt;/TH&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l b header" scope="col"&gt;Parameter&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Estimate&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Standard Error&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;t&amp;nbsp;Value&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Pr&amp;nbsp;&amp;gt;&amp;nbsp;|t|&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH class="l rowheader" scope="row"&gt;Intercept&lt;/TH&gt;
&lt;TD class="r data"&gt;-0.2423962&lt;/TD&gt;
&lt;TD class="r data"&gt;0.24823069&lt;/TD&gt;
&lt;TD class="r data"&gt;-0.98&lt;/TD&gt;
&lt;TD class="r data"&gt;0.4318&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l rowheader" scope="row"&gt;Cylinders&lt;/TH&gt;
&lt;TD class="r data"&gt;0.6195316&lt;/TD&gt;
&lt;TD class="r data"&gt;0.03299998&lt;/TD&gt;
&lt;TD class="r data"&gt;18.77&lt;/TD&gt;
&lt;TD class="r data"&gt;0.0028&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l rowheader" scope="row"&gt;Origin Asia&lt;/TH&gt;
&lt;TD class="r data"&gt;-0.2473363&lt;/TD&gt;
&lt;TD class="r data"&gt;0.02963121&lt;/TD&gt;
&lt;TD class="r data"&gt;-8.35&lt;/TD&gt;
&lt;TD class="r data"&gt;0.0141&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l rowheader" scope="row"&gt;Origin Europe&lt;/TH&gt;
&lt;TD class="r data"&gt;-0.4510775&lt;/TD&gt;
&lt;TD class="r data"&gt;0.00538821&lt;/TD&gt;
&lt;TD class="r data"&gt;-83.72&lt;/TD&gt;
&lt;TD class="r data"&gt;0.0001&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l rowheader" scope="row"&gt;Origin USA&lt;/TH&gt;
&lt;TD class="r data"&gt;0.0000000&lt;/TD&gt;
&lt;TD class="r data"&gt;0.00000000&lt;/TD&gt;
&lt;TD class="r data"&gt;.&lt;/TD&gt;
&lt;TD class="r data"&gt;.&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l rowheader" scope="row"&gt;Type Hybrid&lt;/TH&gt;
&lt;TD class="r data"&gt;-0.1485498&lt;/TD&gt;
&lt;TD class="r data"&gt;0.10737472&lt;/TD&gt;
&lt;TD class="r data"&gt;-1.38&lt;/TD&gt;
&lt;TD class="r data"&gt;0.3007&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l rowheader" scope="row"&gt;Type SUV&lt;/TH&gt;
&lt;TD class="r data"&gt;0.2723754&lt;/TD&gt;
&lt;TD class="r data"&gt;0.09245885&lt;/TD&gt;
&lt;TD class="r data"&gt;2.95&lt;/TD&gt;
&lt;TD class="r data"&gt;0.0985&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l rowheader" scope="row"&gt;Type Sedan&lt;/TH&gt;
&lt;TD class="r data"&gt;-0.0206628&lt;/TD&gt;
&lt;TD class="r data"&gt;0.05296500&lt;/TD&gt;
&lt;TD class="r data"&gt;-0.39&lt;/TD&gt;
&lt;TD class="r data"&gt;0.7341&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l rowheader" scope="row"&gt;Type Sports&lt;/TH&gt;
&lt;TD class="r data"&gt;0.1480223&lt;/TD&gt;
&lt;TD class="r data"&gt;0.17265540&lt;/TD&gt;
&lt;TD class="r data"&gt;0.86&lt;/TD&gt;
&lt;TD class="r data"&gt;0.4816&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l rowheader" scope="row"&gt;Type Truck&lt;/TH&gt;
&lt;TD class="r data"&gt;0.5319361&lt;/TD&gt;
&lt;TD class="r data"&gt;0.11385004&lt;/TD&gt;
&lt;TD class="r data"&gt;4.67&lt;/TD&gt;
&lt;TD class="r data"&gt;0.0429&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l rowheader" scope="row"&gt;Type Wagon&lt;/TH&gt;
&lt;TD class="r data"&gt;0.0000000&lt;/TD&gt;
&lt;TD class="r data"&gt;0.00000000&lt;/TD&gt;
&lt;TD class="r data"&gt;.&lt;/TD&gt;
&lt;TD class="r data"&gt;.&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;GLM RESULT&lt;/P&gt;
&lt;DIV class="branch"&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;
&lt;TABLE class="table" summary="Procedure GLM: Solution" frame="box" rules="all" cellspacing="0" cellpadding="5"&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="l b header" scope="col"&gt;Parameter&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Estimate&lt;/TH&gt;
&lt;TH class="c headerempty" scope="col"&gt;&amp;nbsp;&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Standard Error&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;t&amp;nbsp;Value&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Pr&amp;nbsp;&amp;gt;&amp;nbsp;|t|&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH class="l rowheader" scope="row"&gt;Cylinders&lt;/TH&gt;
&lt;TD class="r data"&gt;0.6292556337&lt;/TD&gt;
&lt;TD class="r data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="r data"&gt;0.01473441&lt;/TD&gt;
&lt;TD class="r data"&gt;42.71&lt;/TD&gt;
&lt;TD class="r data"&gt;&amp;lt;.0001&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l rowheader" scope="row"&gt;Type Hybrid&lt;/TH&gt;
&lt;TD class="r data"&gt;-.1535480401&lt;/TD&gt;
&lt;TD class="r data"&gt;B&lt;/TD&gt;
&lt;TD class="r data"&gt;0.23825545&lt;/TD&gt;
&lt;TD class="r data"&gt;-0.64&lt;/TD&gt;
&lt;TD class="r data"&gt;0.5196&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l rowheader" scope="row"&gt;Type SUV&lt;/TH&gt;
&lt;TD class="r data"&gt;0.2436920500&lt;/TD&gt;
&lt;TD class="r data"&gt;B&lt;/TD&gt;
&lt;TD class="r data"&gt;0.08982120&lt;/TD&gt;
&lt;TD class="r data"&gt;2.71&lt;/TD&gt;
&lt;TD class="r data"&gt;0.0070&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l rowheader" scope="row"&gt;Type Sedan&lt;/TH&gt;
&lt;TD class="r data"&gt;-.0144629620&lt;/TD&gt;
&lt;TD class="r data"&gt;B&lt;/TD&gt;
&lt;TD class="r data"&gt;0.07368536&lt;/TD&gt;
&lt;TD class="r data"&gt;-0.20&lt;/TD&gt;
&lt;TD class="r data"&gt;0.8445&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l rowheader" scope="row"&gt;Type Sports&lt;/TH&gt;
&lt;TD class="r data"&gt;0.0949267303&lt;/TD&gt;
&lt;TD class="r data"&gt;B&lt;/TD&gt;
&lt;TD class="r data"&gt;0.09199753&lt;/TD&gt;
&lt;TD class="r data"&gt;1.03&lt;/TD&gt;
&lt;TD class="r data"&gt;0.3028&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l rowheader" scope="row"&gt;Type Truck&lt;/TH&gt;
&lt;TD class="r data"&gt;0.4970593441&lt;/TD&gt;
&lt;TD class="r data"&gt;B&lt;/TD&gt;
&lt;TD class="r data"&gt;0.10899489&lt;/TD&gt;
&lt;TD class="r data"&gt;4.56&lt;/TD&gt;
&lt;TD class="r data"&gt;&amp;lt;.0001&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l rowheader" scope="row"&gt;Type Wagon&lt;/TH&gt;
&lt;TD class="r data"&gt;0.0000000000&lt;/TD&gt;
&lt;TD class="r data"&gt;B&lt;/TD&gt;
&lt;TD class="r data"&gt;.&lt;/TD&gt;
&lt;TD class="r data"&gt;.&lt;/TD&gt;
&lt;TD class="r data"&gt;.&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 18 Oct 2019 19:13:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Fixed-effect-with-clustered-standard-errors-proc-glm/m-p/597816#M76256</guid>
      <dc:creator>braam</dc:creator>
      <dc:date>2019-10-18T19:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed effect with clustered standard errors? proc glm?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Fixed-effect-with-clustered-standard-errors-proc-glm/m-p/597818#M76257</link>
      <description>&lt;P&gt;This seems to be a problem that I will have to think about, as I don't see an obvious path forward right now. Large number of levels of any class variable do cause this problem where you don't have enough memory or it takes a huge long time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How were you going to handle the issue that SAS always assigns a standard error of zero to one (or more) of the class levels?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2019 19:24:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Fixed-effect-with-clustered-standard-errors-proc-glm/m-p/597818#M76257</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-10-18T19:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed effect with clustered standard errors? proc glm?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Fixed-effect-with-clustered-standard-errors-proc-glm/m-p/597888#M76259</link>
      <description>&lt;P&gt;If you have&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;panel data ,Try post it at Forecast forum. also try PROC PANEL .&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Oct 2019 12:09:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Fixed-effect-with-clustered-standard-errors-proc-glm/m-p/597888#M76259</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-10-19T12:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed effect with clustered standard errors? proc glm?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Fixed-effect-with-clustered-standard-errors-proc-glm/m-p/598160#M76266</link>
      <description>&lt;P&gt;To get the same parameter estimates, you need to specify NOINT in the SURVEYREG procedure:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=sashelp.cars out=cars;
by Origin;
run;

proc surveyreg data=cars;
	cluster Origin;
	class Origin Type;
	model EngineSize= Cylinders Origin Type/ noint solution;
        ods select parameterestimates;
	run;

proc glm data=cars;
	absorb Origin;
	class Type;
	model EngineSize= Cylinders Type/ solution;
        ods select parameterestimates;
	quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 21 Oct 2019 15:27:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Fixed-effect-with-clustered-standard-errors-proc-glm/m-p/598160#M76266</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-10-21T15:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed effect with clustered standard errors? proc glm?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Fixed-effect-with-clustered-standard-errors-proc-glm/m-p/598175#M76267</link>
      <description>Thanks! I confirmed it! One thing that is interesting to me is that the coefficient on Cylinders is 0.619 in both ways, but their t-stat varies a lot. For surveyreg, t-stat is 18.77 while for glm, t-stat is 46.32.&lt;BR /&gt;&lt;BR /&gt;Is it because absorbing fixed-effects (conceptually demeaning) influences variance-covariance matrix?</description>
      <pubDate>Mon, 21 Oct 2019 16:50:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Fixed-effect-with-clustered-standard-errors-proc-glm/m-p/598175#M76267</guid>
      <dc:creator>braam</dc:creator>
      <dc:date>2019-10-21T16:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed effect with clustered standard errors? proc glm?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Fixed-effect-with-clustered-standard-errors-proc-glm/m-p/598191#M76268</link>
      <description>&lt;P&gt;It is because the variance estimation formulas for survey statistics (like in PROC SURVEYREG) are different from the variance estimation formulas in linear modeling. Although the point estimates are the same, the standard errors are not. The survey variance is inflated because you need to account for the sample design.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 17:45:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Fixed-effect-with-clustered-standard-errors-proc-glm/m-p/598191#M76268</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-10-21T17:45:06Z</dc:date>
    </item>
  </channel>
</rss>

