<?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: How do I find overall model fit for proc robustreg? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-find-overall-model-fit-for-proc-robustreg/m-p/318423#M16803</link>
    <description>&lt;P&gt;Many thanks for the prompt reply. I&amp;nbsp;understand now why there are no p-values associated with the goodness of fit measures provided by proc robustreg. If I understand correctly, other than this bootstrapping approach, there is no way to generate a test statistic with a p-value for the overall fit of the model when using a model with multiple regressors in proc robustreg?&lt;/P&gt;</description>
    <pubDate>Tue, 13 Dec 2016 01:03:28 GMT</pubDate>
    <dc:creator>alainc99</dc:creator>
    <dc:date>2016-12-13T01:03:28Z</dc:date>
    <item>
      <title>How do I find overall model fit for proc robustreg?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-find-overall-model-fit-for-proc-robustreg/m-p/318418#M16800</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a robust regression that I am trying to run with multiple predictors. I'm using SAS University edition.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see that proc glm produces a model summary table with an F-test and p-value for the overall model. However, proc robustreg does not produce such a table, and only seems to produce goodness-of-fit measures with no p-values. Currently, I am using this script:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;PROC ROBUSTREG DATA=SASDATA.ROBUST_FINAL;&lt;/DIV&gt;&lt;DIV&gt;MODEL Mean1_age_residual = MAP hbA1c LDL;&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output from this script is attached. How do I get a F-test with p-value, or something similar with a p-value, for the overall model in proc robustreg when using multiple predictors? I don't see instructions for how to do this in any of the online content or the PDF on the procedure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Alain&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2016 23:42:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-find-overall-model-fit-for-proc-robustreg/m-p/318418#M16800</guid>
      <dc:creator>alainc99</dc:creator>
      <dc:date>2016-12-12T23:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find overall model fit for proc robustreg?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-find-overall-model-fit-for-proc-robustreg/m-p/318421#M16801</link>
      <description>&lt;P&gt;&amp;nbsp;A test statistic and p-value requires knowing the sampling distribution of the parameter estimates. &amp;nbsp;The sampling distributions for the robust R-squared and robust deviance are not known, which is why you do not see standard errors o p-values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If necessary, you can use bootstrapping to approximate the sampling distribution and standard errors for these statistics. See the article &lt;A href="http://blogs.sas.com/content/iml/2011/11/02/how-to-compute-p-values-for-a-bootstrap-distribution.html" target="_self"&gt;"How to compute p-values for a bootstrap distribution."&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 00:33:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-find-overall-model-fit-for-proc-robustreg/m-p/318421#M16801</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-12-13T00:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find overall model fit for proc robustreg?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-find-overall-model-fit-for-proc-robustreg/m-p/318423#M16803</link>
      <description>&lt;P&gt;Many thanks for the prompt reply. I&amp;nbsp;understand now why there are no p-values associated with the goodness of fit measures provided by proc robustreg. If I understand correctly, other than this bootstrapping approach, there is no way to generate a test statistic with a p-value for the overall fit of the model when using a model with multiple regressors in proc robustreg?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 01:03:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-find-overall-model-fit-for-proc-robustreg/m-p/318423#M16803</guid>
      <dc:creator>alainc99</dc:creator>
      <dc:date>2016-12-13T01:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find overall model fit for proc robustreg?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-find-overall-model-fit-for-proc-robustreg/m-p/318427#M16804</link>
      <description>&lt;P&gt;I am not an expert on using ROBUSTREG, so I won't swear that there is not a way. &amp;nbsp;However, I do not know of a way. If you searched the documentation and didn't find it, then I'd guess that ROBUSTREG can't produce it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, a related question is "what is the final weighted least squares model" after you remove outliers and downweight observations.&lt;/P&gt;
&lt;P&gt;For that you can u se the OUTPUT statement and use the WEIGHT= option to output the final weights. Then use PROC GLM to run a weighted OLS regression. That will give you Type &amp;nbsp;3 F test &amp;nbsp;for the final weighted OLS model, as follows&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc robustreg data=sashelp.cars method=MM FWLS;
model mpg_city  = horsepower;
output  out=RROut weight=w;
run;

proc glm data=RROut;
weight w;
model mpg_City  = horsepower;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I&amp;nbsp;am not suggesting this approach (to be honest, I'm not sure what it means...) but I am just letting you know that it is possible. &amp;nbsp;Maybe a &amp;nbsp;regression expert will chime in.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 02:19:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-find-overall-model-fit-for-proc-robustreg/m-p/318427#M16804</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-12-13T02:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find overall model fit for proc robustreg?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-find-overall-model-fit-for-proc-robustreg/m-p/318433#M16805</link>
      <description>&lt;P&gt;You can get an overall model test (against hypothesis: all parameters are zero) in ROBUSTREG with the TEST statement :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;PROC ROBUSTREG DATA=SASDATA.ROBUST_FINAL;&lt;/DIV&gt;
&lt;DIV&gt;MODEL Mean1_age_residual = MAP hbA1c LDL;&lt;/DIV&gt;
&lt;DIV&gt;overall: TEST&amp;nbsp;&lt;SPAN&gt;MAP hbA1c LDL;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;run;&lt;/DIV&gt;</description>
      <pubDate>Tue, 13 Dec 2016 03:07:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-find-overall-model-fit-for-proc-robustreg/m-p/318433#M16805</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-12-13T03:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find overall model fit for proc robustreg?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-find-overall-model-fit-for-proc-robustreg/m-p/318434#M16806</link>
      <description>&lt;P&gt;... &amp;nbsp;But I prefer to keep it simple: Use ROBUSTREG to identify outliers, take them out (report on them) and do a standard regression to fit the data:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc robustreg data=sashelp.cars method=MM;
model mpg_city  = horsepower weight / cutoff=4;
Overall: test horsepower weight;
output  out=RROut outlier=outlier;
run;

proc glm data=RROut;
where not outlier;
model mpg_City  = horsepower weight;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Dec 2016 03:16:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-find-overall-model-fit-for-proc-robustreg/m-p/318434#M16806</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-12-13T03:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find overall model fit for proc robustreg?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-find-overall-model-fit-for-proc-robustreg/m-p/318456#M16811</link>
      <description>&lt;P&gt;Many thanks to both of you. PG Stats, iIn terms of interpreting the results of the Robust Linear Test output table, which value should I use Rho or Rn2 (attached)? Rn2 is significant while Rho very clearly is not. What is the rationale for trusting one value over the other?&lt;BR /&gt;&lt;BR /&gt;If I use your alternative approach of identifying the outliers and running a standard regression, do I simply substitute the names of my dataset and variables? Do I go with a cutoff of 4? What other things do I need to change in the script?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 05:33:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-find-overall-model-fit-for-proc-robustreg/m-p/318456#M16811</guid>
      <dc:creator>alainc99</dc:creator>
      <dc:date>2016-12-13T05:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find overall model fit for proc robustreg?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-find-overall-model-fit-for-proc-robustreg/m-p/318459#M16812</link>
      <description>&lt;P&gt;See&amp;nbsp;&lt;A href="http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/statug_rreg_details01.htm#statug.rreg.robustregfltest" target="_self"&gt;http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/statug_rreg_details01.htm#statug.rreg.robustregfltest&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The first test (Rho) is a robust version of the F test. So I guess it is the one you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The default cutoff value is 3 by default. I put 4 just to show it could be changed. What constitute an outlier is to a great extent a matter of opinion.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 06:00:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-find-overall-model-fit-for-proc-robustreg/m-p/318459#M16812</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-12-13T06:00:06Z</dc:date>
    </item>
  </channel>
</rss>

