<?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 Surveyreg, PROC GLM, or PROC Mixed? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-Surveyreg-PROC-GLM-or-PROC-Mixed/m-p/646494#M193411</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/51685"&gt;@therock&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By putting the Class variables in model statement, SAS tells me that:&amp;nbsp;&lt;SPAN&gt;The X’X matrix has been found to be singular.&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This always happens when you have CLASS variables. It does not indicate you did anything wrong. It does not indicate a problem with the analysis, which (if everything is done correctly) is the correct analysis. Everyone who has ever used CLASS variables in a SAS model with the SOLUTION option has gotten this message.&lt;/P&gt;</description>
    <pubDate>Sun, 10 May 2020 11:32:25 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2020-05-10T11:32:25Z</dc:date>
    <item>
      <title>PROC Surveyreg, PROC GLM, or PROC Mixed?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-Surveyreg-PROC-GLM-or-PROC-Mixed/m-p/646364#M193329</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;I am trying to replicate the following statement:&lt;/P&gt;&lt;P&gt;“All specifications include year and industry fixed effects and&amp;nbsp;standard errors are heteroskedasticity robust, clustered at the firm&amp;nbsp;level.” (Costello, 2013). My problem is I am getting three difference coefficients on the model. I need to which option is correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have three option:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1)&amp;nbsp;proc surveyreg data=sample ;&lt;BR /&gt;cluster firm;&lt;BR /&gt;class industry year;&lt;BR /&gt;model DV = IND1*IND2 IND3 IND4 / noint adjrsq solution;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2)&amp;nbsp;proc glm data=sample ;&lt;BR /&gt;absorb industry;&lt;BR /&gt;class year;&lt;BR /&gt;model DV = IND1*IND2 IND3 IND4 year / noint solution;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Could not find a way to do clustering in Proc GLM)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3)&amp;nbsp;proc mixed noclprint data=sample;&lt;BR /&gt;class firm industry year;&lt;BR /&gt;model DV = IND1*IND2 IND3 IND4 industry year / noint solution;&lt;BR /&gt;random intercept/subject=firm;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;(Could not get R-square in Proc Mixed)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help or insight will be very much appreciated. Thank you in advance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 May 2020 10:18:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-Surveyreg-PROC-GLM-or-PROC-Mixed/m-p/646364#M193329</guid>
      <dc:creator>therock</dc:creator>
      <dc:date>2020-05-09T10:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Surveyreg, PROC GLM, or PROC Mixed?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-Surveyreg-PROC-GLM-or-PROC-Mixed/m-p/646371#M193334</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;“All specifications include year and industry fixed effects and standard errors are heteroskedasticity robust, clustered at the firm level.”&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That's really not enough to go on. Perhaps if I read the entire paper, I could advise further, but I'm not going to read the entire paper.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nevertheless, if there is clustering at the firm level, this would suggest using PROC SURVEYREG. I note that you did not put year and industry into the model — putting them in the CLASS statement but not in the MODEL statement really doesn't do anything.&lt;/P&gt;</description>
      <pubDate>Sat, 09 May 2020 11:39:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-Surveyreg-PROC-GLM-or-PROC-Mixed/m-p/646371#M193334</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-05-09T11:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Surveyreg, PROC GLM, or PROC Mixed?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-Surveyreg-PROC-GLM-or-PROC-Mixed/m-p/646440#M193375</link>
      <description>&lt;P&gt;That is what almost all paper mentioned in the Finance field.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By putting the Class variables in model statement, SAS tells me that:&amp;nbsp;&lt;SPAN&gt;The X’X matrix has been found to be singular. Essentially one or more of my independent variables are the exact same. If I do not include the class variables in the model statement, it works just fine.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 10 May 2020 02:00:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-Surveyreg-PROC-GLM-or-PROC-Mixed/m-p/646440#M193375</guid>
      <dc:creator>therock</dc:creator>
      <dc:date>2020-05-10T02:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Surveyreg, PROC GLM, or PROC Mixed?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-Surveyreg-PROC-GLM-or-PROC-Mixed/m-p/646494#M193411</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/51685"&gt;@therock&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By putting the Class variables in model statement, SAS tells me that:&amp;nbsp;&lt;SPAN&gt;The X’X matrix has been found to be singular.&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This always happens when you have CLASS variables. It does not indicate you did anything wrong. It does not indicate a problem with the analysis, which (if everything is done correctly) is the correct analysis. Everyone who has ever used CLASS variables in a SAS model with the SOLUTION option has gotten this message.&lt;/P&gt;</description>
      <pubDate>Sun, 10 May 2020 11:32:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-Surveyreg-PROC-GLM-or-PROC-Mixed/m-p/646494#M193411</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-05-10T11:32:25Z</dc:date>
    </item>
  </channel>
</rss>

