<?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: Help with Proc Surveyreg and Test Statement in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Help-with-Proc-Surveyreg-and-Test-Statement/m-p/227190#M54164</link>
    <description>I forgot to add. I want to test the interaction term between all three variables.</description>
    <pubDate>Thu, 24 Sep 2015 21:37:45 GMT</pubDate>
    <dc:creator>therock</dc:creator>
    <dc:date>2015-09-24T21:37:45Z</dc:date>
    <item>
      <title>Help with Proc Surveyreg and Test Statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-with-Proc-Surveyreg-and-Test-Statement/m-p/227019#M54140</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;I am trying to test the effect on performance of different publicly traded companies based on whether they have audit committee or not after the passage of Sarbens-Oxley Act (SOX) of 2001 based on if they are listed on New York Stock Exchange (NYSE), NASDAQ, American Stock Exchange (ASE), or other exchanges. I have panel data that starts from 1996-2012. So here is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc surveyreg data=problem;&lt;/P&gt;&lt;P&gt;cluster firm;&lt;/P&gt;&lt;P&gt;class year exchange;&lt;/P&gt;&lt;P&gt;model performance = Audit PostSox Exchange ControlVariables Audit*PostSox*Exchange / noint solution;&lt;/P&gt;&lt;P&gt;test&amp;nbsp;&lt;SPAN&gt;Audit*PostSox*NYSE = Audit*PostSox*NASDAQ = Audit*PostSox*ASE = Audit*PostSox*Other;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The test statement does not work. I need help with that please. Can somebody tell me what I am doing wrong and how to fix it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If I use the BY statement in the program, then I need to test the same thing:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc surveyreg data=problem;&lt;/P&gt;&lt;P&gt;cluster firm;&lt;/P&gt;&lt;P&gt;class year;&lt;/P&gt;&lt;P&gt;BY Exchange&lt;/P&gt;&lt;P&gt;model performance = Audit PostSox ControlVariables Audit*PostSox / noint solution;&lt;/P&gt;&lt;P&gt;test&amp;nbsp;&lt;SPAN&gt;Audit*PostSox for NYSE = Audit*PostSox for NASDAQ = Audit*PostSox for ASE = Audit*PostSox for Other;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Which model is better and accurate? Also how do I test the coeffecient in SAS?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;the rock&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2015 00:43:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-with-Proc-Surveyreg-and-Test-Statement/m-p/227019#M54140</guid>
      <dc:creator>therock</dc:creator>
      <dc:date>2015-09-24T00:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Proc Surveyreg and Test Statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-with-Proc-Surveyreg-and-Test-Statement/m-p/227110#M54147</link>
      <description>&lt;P&gt;As a bare minimum you appear to be referencing variables in the test statement that do not appear in the model: NYSE NASDAQ and ASE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second I don't believe that the = sign belongs where you are attempting to use it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am guessing that all you actually want on the test is Exchange.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2015 15:49:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-with-Proc-Surveyreg-and-Test-Statement/m-p/227110#M54147</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-09-24T15:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Proc Surveyreg and Test Statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-with-Proc-Surveyreg-and-Test-Statement/m-p/227189#M54163</link>
      <description>&lt;P&gt;Thanks for reply!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because Exchange is a class variable, I want to test difference between NYSE, ASE, and NASDAQ. So in the model statement I just put Exchange, but in realty it will create a dummy variable for each exchange.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry if the original statement was confusing. Hope this clears up!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2015 21:36:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-with-Proc-Surveyreg-and-Test-Statement/m-p/227189#M54163</guid>
      <dc:creator>therock</dc:creator>
      <dc:date>2015-09-24T21:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Proc Surveyreg and Test Statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-with-Proc-Surveyreg-and-Test-Statement/m-p/227190#M54164</link>
      <description>I forgot to add. I want to test the interaction term between all three variables.</description>
      <pubDate>Thu, 24 Sep 2015 21:37:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-with-Proc-Surveyreg-and-Test-Statement/m-p/227190#M54164</guid>
      <dc:creator>therock</dc:creator>
      <dc:date>2015-09-24T21:37:45Z</dc:date>
    </item>
  </channel>
</rss>

