<?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: Add t-stats to PROC Robustreg in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Add-t-stats-to-PROC-Robustreg/m-p/821356#M40639</link>
    <description>Thanks for your answer! Is it also possible to have the adjusted R-squared as an output?</description>
    <pubDate>Sat, 02 Jul 2022 08:43:16 GMT</pubDate>
    <dc:creator>drip_</dc:creator>
    <dc:date>2022-07-02T08:43:16Z</dc:date>
    <item>
      <title>Add t-stats to PROC Robustreg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Add-t-stats-to-PROC-Robustreg/m-p/821298#M40631</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm running a robust regression (m estimation) and would like to put out t statistics and (adjusted) r^2 to a dataset similar to the "outest = ... tableout" option when using proc reg.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 14:52:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Add-t-stats-to-PROC-Robustreg/m-p/821298#M40631</guid>
      <dc:creator>drip_</dc:creator>
      <dc:date>2022-07-01T14:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: Add t-stats to PROC Robustreg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Add-t-stats-to-PROC-Robustreg/m-p/821304#M40632</link>
      <description>&lt;P&gt;I don't see any place where ROBUSTREG produces t-statistics. The R-squared can be obtained by&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods output goodfit=goodfit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;if the estimation method produces R-squared as a standard output (M estimation does).&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 15:51:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Add-t-stats-to-PROC-Robustreg/m-p/821304#M40632</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-07-01T15:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Add t-stats to PROC Robustreg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Add-t-stats-to-PROC-Robustreg/m-p/821305#M40633</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;outest= option in PROC ROBUSTREG is like outest= option in PROC REG.&lt;BR /&gt;What are you missing in the former that you have in the latter?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data a (drop=i);
   do i=1 to 1000;
      x1=rannor(1234);
      x2=rannor(1234);
      e=rannor(1234);
      if i &amp;gt; 900 then y=100 + e;
      else y=10 + 5*x1 + 3*x2 + .5 * e;
      output;
   end;
run;

proc reg data=a outest=abc;
   model y = x1 x2;
run;

proc robustreg data=a method=m outest=xyz;
   model y = x1 x2;
run;
/* end of program */&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 15:55:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Add-t-stats-to-PROC-Robustreg/m-p/821305#M40633</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2022-07-01T15:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: Add t-stats to PROC Robustreg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Add-t-stats-to-PROC-Robustreg/m-p/821356#M40639</link>
      <description>Thanks for your answer! Is it also possible to have the adjusted R-squared as an output?</description>
      <pubDate>Sat, 02 Jul 2022 08:43:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Add-t-stats-to-PROC-Robustreg/m-p/821356#M40639</guid>
      <dc:creator>drip_</dc:creator>
      <dc:date>2022-07-02T08:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Add t-stats to PROC Robustreg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Add-t-stats-to-PROC-Robustreg/m-p/821357#M40640</link>
      <description>What I'm missing specifically is the t-stats, so far I have only been able to obtain R-squared</description>
      <pubDate>Sat, 02 Jul 2022 08:43:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Add-t-stats-to-PROC-Robustreg/m-p/821357#M40640</guid>
      <dc:creator>drip_</dc:creator>
      <dc:date>2022-07-02T08:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Add t-stats to PROC Robustreg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Add-t-stats-to-PROC-Robustreg/m-p/821360#M40641</link>
      <description>&lt;P&gt;As far as I can see, ROBUSTREG does not produce adjusted R-squared, only R-squared. However, there's nothing stopping you from applying the adjusted R-squared formula to the actual R-squared if you want.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Jul 2022 10:10:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Add-t-stats-to-PROC-Robustreg/m-p/821360#M40641</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-07-02T10:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Add t-stats to PROC Robustreg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Add-t-stats-to-PROC-Robustreg/m-p/821598#M40652</link>
      <description>&lt;P&gt;What you are asking for does not make sense, as stated.&lt;/P&gt;
&lt;P&gt;For ordinary least-squares regression (OLS), the null hypothesis Beta_i = 0 is tested by using a t test.&lt;/P&gt;
&lt;P&gt;But for M estimation, the test statistic for H0 is not t-distributed. Instead, you can test for&amp;nbsp;Beta_i = 0 by using a robust version of the F test. The robust test statistic is distributed as a chi-square statistic. The details are provided in the doc:&amp;nbsp;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_rreg_details01.htm#statug.rreg.robustregfltest" target="_blank"&gt;SAS Help Center: M Estimation&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your goal is to test the null hypothesis that Beta_i=0, then you can use the FWLS option on the PROC ROBUSTREG statement to display a table that shows the parameter estimates for the final weighted least squares fit. The following statements build on the program that&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/60547"&gt;@sbxkoenk&lt;/a&gt;&amp;nbsp;provided:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc robustreg data=a method=m outest=xyz FWLS;
   model y = x1 x2;
   ods output ParameterEstimatesF=PEFinal;
run;

proc print data=PEFinal;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The ProbChiSq variable contains the p-values for the test statistic under the null hypothesis.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 13:44:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Add-t-stats-to-PROC-Robustreg/m-p/821598#M40652</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-07-05T13:44:29Z</dc:date>
    </item>
  </channel>
</rss>

