<?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 GLM vs. Proc Surveyreg in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-GLM-vs-Proc-Surveyreg/m-p/28335#M1106</link>
    <description>Thanks for the help.  I appreciate it.</description>
    <pubDate>Fri, 08 May 2009 17:31:37 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-05-08T17:31:37Z</dc:date>
    <item>
      <title>Proc GLM vs. Proc Surveyreg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-GLM-vs-Proc-Surveyreg/m-p/28332#M1103</link>
      <description>I have run the exact same regression model in both GLM and Surveyreg.  I then use the Contrast statement to perform an F-test for the difference between two coefficients.  I am trying to figure out why the F-value is different between the two.  Here is the code I run:&lt;BR /&gt;
&lt;BR /&gt;
proc glm data=My_Data;&lt;BR /&gt;
class CUSIP SIC2 YEAR;&lt;BR /&gt;
model Y=X1 X2 CUSIP SIC2 YEAR / Solution;&lt;BR /&gt;
contrast 'X1=X2' X1 1 X2 -1; run;&lt;BR /&gt;
&lt;BR /&gt;
Output: F-value = 7.91, p-value = .0049&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
proc surveyreg data=My_Data;&lt;BR /&gt;
class CUSIP SIC2 YEAR;&lt;BR /&gt;
model Y=X1 X2 CUSIP SIC2 YEAR / Solution;&lt;BR /&gt;
contrast 'X1=X2' X1 1 X2 -1; run;&lt;BR /&gt;
&lt;BR /&gt;
Output: F-value = 3.93, p-value = .0474&lt;BR /&gt;
&lt;BR /&gt;
The two regressions have the same parameter estimates, but different standard errors and t-statistics.  Can you tell me what the difference is between surveyreg and GLM?&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Wed, 06 May 2009 18:12:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-GLM-vs-Proc-Surveyreg/m-p/28332#M1103</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-05-06T18:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Proc GLM vs. Proc Surveyreg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-GLM-vs-Proc-Surveyreg/m-p/28333#M1104</link>
      <description>Hi &lt;B&gt;MatthewSAS&lt;/B&gt;,&lt;BR /&gt;
&lt;BR /&gt;
I did a little experiment on my own: fitted the same model with PROC GLM then with PROC SURVEYREG. I got same estimates of the regression coefficient but F-statistics and p-values were somewhat different. &lt;BR /&gt;
&lt;BR /&gt;
Since it's the same model the reason must be the different methods used to estimate variance-covariance matrix of the regression coefficients - and yes, they are different. Here is some information I found in SAS/STAT(R) 9.2 User's Guide:&lt;BR /&gt;
&lt;BR /&gt;
Variance estimation in PROC SURVEYREG&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/statug/59654/HTML/default/statug_surveyreg_a0000000257.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/statug/59654/HTML/default/statug_surveyreg_a0000000257.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Hypothesis testing in PROC GLM&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/statug/59654/HTML/default/statug_glm_sect040.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/statug/59654/HTML/default/statug_glm_sect040.htm&lt;/A&gt;</description>
      <pubDate>Fri, 08 May 2009 17:01:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-GLM-vs-Proc-Surveyreg/m-p/28333#M1104</guid>
      <dc:creator>statsplank</dc:creator>
      <dc:date>2009-05-08T17:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Proc GLM vs. Proc Surveyreg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-GLM-vs-Proc-Surveyreg/m-p/28334#M1105</link>
      <description>In addition, the number of degrees of freedom also could differ between the two procedures.</description>
      <pubDate>Fri, 08 May 2009 17:09:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-GLM-vs-Proc-Surveyreg/m-p/28334#M1105</guid>
      <dc:creator>statsplank</dc:creator>
      <dc:date>2009-05-08T17:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: Proc GLM vs. Proc Surveyreg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-GLM-vs-Proc-Surveyreg/m-p/28335#M1106</link>
      <description>Thanks for the help.  I appreciate it.</description>
      <pubDate>Fri, 08 May 2009 17:31:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-GLM-vs-Proc-Surveyreg/m-p/28335#M1106</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-05-08T17:31:37Z</dc:date>
    </item>
  </channel>
</rss>

