<?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: Regression with robust standard errors and interacting variables in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Regression-with-robust-standard-errors-and-interacting-variables/m-p/186384#M14268</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stephanie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This link may help with robust regressions/standard errors: &lt;/P&gt;&lt;P&gt;&lt;A href="http://www.ats.ucla.edu/stat/sas/webbooks/reg/chapter4/sasreg4.htm" title="http://www.ats.ucla.edu/stat/sas/webbooks/reg/chapter4/sasreg4.htm"&gt;http://www.ats.ucla.edu/stat/sas/webbooks/reg/chapter4/sasreg4.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are only interested in outputting robust standard errors and including interactions, this can be done in proc reg by creating multiplicative product variables to represent the interaction terms. See below for a simple example examining the interaction between female and age.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data new; set old;&lt;/P&gt;&lt;P&gt;femXage = female*age;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc reg data=new; &lt;/P&gt;&lt;P&gt;model depvar = female age femXage / acov;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With that said, I recommend comparing robust and regular standard errors, examining residuals, and exploring the causes of any potential differences in findings because an alternative analytic approach may be more appropriate (e.g., you may need to use surveyreg, glm w/repeated, or mixed to account for non-normally distributed DVs/residuals or clustered or repeated measures data).&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck - I hope this helps!&lt;/P&gt;&lt;P&gt;Jon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Oct 2014 13:58:22 GMT</pubDate>
    <dc:creator>jrbrauer</dc:creator>
    <dc:date>2014-10-17T13:58:22Z</dc:date>
    <item>
      <title>Regression with robust standard errors and interacting variables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Regression-with-robust-standard-errors-and-interacting-variables/m-p/186383#M14267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm doing some data analysis for a project and my advisor would like me to run simple linear regressions with robust standard errors on all the models. I was planning to use the /acov option in proc reg to calculate the robust standard errors. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A few of the models include interaction of variables. I know that I can use proc glm for interacted variables, but I'm not able to generate the robust standard errors with this procedure. Any thoughts on how to get both robust standard errors and include interacted variables in a simple linear regression procedure? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate any help!&lt;BR /&gt;Stephanie &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 00:05:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Regression-with-robust-standard-errors-and-interacting-variables/m-p/186383#M14267</guid>
      <dc:creator>burtsm</dc:creator>
      <dc:date>2014-10-16T00:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Regression with robust standard errors and interacting variables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Regression-with-robust-standard-errors-and-interacting-variables/m-p/186384#M14268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stephanie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This link may help with robust regressions/standard errors: &lt;/P&gt;&lt;P&gt;&lt;A href="http://www.ats.ucla.edu/stat/sas/webbooks/reg/chapter4/sasreg4.htm" title="http://www.ats.ucla.edu/stat/sas/webbooks/reg/chapter4/sasreg4.htm"&gt;http://www.ats.ucla.edu/stat/sas/webbooks/reg/chapter4/sasreg4.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are only interested in outputting robust standard errors and including interactions, this can be done in proc reg by creating multiplicative product variables to represent the interaction terms. See below for a simple example examining the interaction between female and age.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data new; set old;&lt;/P&gt;&lt;P&gt;femXage = female*age;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc reg data=new; &lt;/P&gt;&lt;P&gt;model depvar = female age femXage / acov;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With that said, I recommend comparing robust and regular standard errors, examining residuals, and exploring the causes of any potential differences in findings because an alternative analytic approach may be more appropriate (e.g., you may need to use surveyreg, glm w/repeated, or mixed to account for non-normally distributed DVs/residuals or clustered or repeated measures data).&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck - I hope this helps!&lt;/P&gt;&lt;P&gt;Jon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2014 13:58:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Regression-with-robust-standard-errors-and-interacting-variables/m-p/186384#M14268</guid>
      <dc:creator>jrbrauer</dc:creator>
      <dc:date>2014-10-17T13:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: Regression with robust standard errors and interacting variables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Regression-with-robust-standard-errors-and-interacting-variables/m-p/186385#M14269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Jon--your response was very helpful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 18:10:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Regression-with-robust-standard-errors-and-interacting-variables/m-p/186385#M14269</guid>
      <dc:creator>burtsm</dc:creator>
      <dc:date>2014-10-21T18:10:06Z</dc:date>
    </item>
  </channel>
</rss>

