<?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 What are the differences between t-stats from PROC SURVEYREG and PROC REG? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/What-are-the-differences-between-t-stats-from-PROC-SURVEYREG-and/m-p/747782#M234771</link>
    <description>&lt;P&gt;I tried these PROCs in their most simple form and got different t-stats and StdErr. Why so? Here is my data and code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*Get the dataset;
	filename foo1 URL "http://www.kellogg.northwestern.edu/faculty/petersen/htm/papers/se/test_data.txt";
	data ds;
	  infile foo1;
	  input firmid year x y;
	run;
*Now run different methods;
	*Normal SE;
		proc reg data=ds;
		    model y = x;
			ods output ParameterEstimates=temp0 fitstatistics=fit0;
		run;
	*Using PROC SURVEYREG with no special specs;
		proc surveyreg data=ds;
			model y = x / solution;
			ods output ParameterEstimates=temp1 fitstatistics=fit1;
		run;quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 14 Jun 2021 13:02:27 GMT</pubDate>
    <dc:creator>somebody</dc:creator>
    <dc:date>2021-06-14T13:02:27Z</dc:date>
    <item>
      <title>What are the differences between t-stats from PROC SURVEYREG and PROC REG?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-are-the-differences-between-t-stats-from-PROC-SURVEYREG-and/m-p/747782#M234771</link>
      <description>&lt;P&gt;I tried these PROCs in their most simple form and got different t-stats and StdErr. Why so? Here is my data and code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*Get the dataset;
	filename foo1 URL "http://www.kellogg.northwestern.edu/faculty/petersen/htm/papers/se/test_data.txt";
	data ds;
	  infile foo1;
	  input firmid year x y;
	run;
*Now run different methods;
	*Normal SE;
		proc reg data=ds;
		    model y = x;
			ods output ParameterEstimates=temp0 fitstatistics=fit0;
		run;
	*Using PROC SURVEYREG with no special specs;
		proc surveyreg data=ds;
			model y = x / solution;
			ods output ParameterEstimates=temp1 fitstatistics=fit1;
		run;quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 14 Jun 2021 13:02:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-are-the-differences-between-t-stats-from-PROC-SURVEYREG-and/m-p/747782#M234771</guid>
      <dc:creator>somebody</dc:creator>
      <dc:date>2021-06-14T13:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: What are the differences between t-stats from PROC SURVEYREG and PROC REG?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-are-the-differences-between-t-stats-from-PROC-SURVEYREG-and/m-p/747803#M234774</link>
      <description>&lt;P&gt;I don't think SURVEYREG computes the standard errors the same as REG.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_surveyreg_overview.htm" target="_self"&gt;documentation&lt;/A&gt; (which you should always check first):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;PROC SURVEYREG uses elementwise regression to compute the regression coefficient estimators by generalized least squares estimation. The procedure assumes that the regression coefficients are the same across strata and primary sampling units (PSUs). To estimate the variance-covariance matrix for the regression coefficients, PROC SURVEYREG uses either the Taylor series (linearization) method or replication (resampling) methods to estimate sampling errors of estimators, based on complex sample designs.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Mon, 14 Jun 2021 13:47:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-are-the-differences-between-t-stats-from-PROC-SURVEYREG-and/m-p/747803#M234774</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-06-14T13:47:27Z</dc:date>
    </item>
  </channel>
</rss>

