<?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 to compare two coefficients in PROC SURVEYREG? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-compare-two-coefficients-in-PROC-SURVEYREG/m-p/378138#M19856</link>
    <description>&lt;P&gt;Since SURVEYREG does not have a TEST statement that will allow multiple effects on it. Instead you should use a CONTRAST statement instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;test x1=x2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which is the same as&amp;nbsp;&lt;/P&gt;&lt;P&gt;x1-x2=0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;would translate to&amp;nbsp;&lt;BR /&gt;contrast 'test_label' x1 1 x2-1;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jul 2017 13:42:51 GMT</pubDate>
    <dc:creator>SAS_Rob</dc:creator>
    <dc:date>2017-07-21T13:42:51Z</dc:date>
    <item>
      <title>How to compare two coefficients in PROC SURVEYREG?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-compare-two-coefficients-in-PROC-SURVEYREG/m-p/376403#M19737</link>
      <description>&lt;P&gt;I have a model:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc surveylogistic data=table;
  class year industry;
  model dep (descending) = x1 x2 x3 x4 x5 year industry /rsquare;
run;&lt;/PRE&gt;&lt;P&gt;To test if x1 is statistically different than x2, I do:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc surveylogistic data=table;
  class year industry;
  model dep (descending) = x1 x2 x3 x4 x5 year industry /rsquare;
  test1: test x1 = x2;
run;&lt;/PRE&gt;&lt;P&gt;How do I do the same in PROC SURVEYREG? This does not work:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc surveyreg data=table;
  class year industry;
  model dep (descending) = x1 x2 x3 x4 x5 year industry /solution rsquare;
  test1: test x1 = x2;
run;&lt;/PRE&gt;&lt;P&gt;The above throws an error,&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, ;, (, *,
              -, /, :, @, _CHARACTER_, _CHAR_, _NUMERIC_, |.
ERROR 200-322: The symbol is not recognized and will be ignored&lt;/PRE&gt;&lt;P&gt;I'm looking to test if two coefficients in PROC SURVEYREG are statistically different from each other.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2017 04:45:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-compare-two-coefficients-in-PROC-SURVEYREG/m-p/376403#M19737</guid>
      <dc:creator>BobSmith</dc:creator>
      <dc:date>2017-07-17T04:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare two coefficients in PROC SURVEYREG?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-compare-two-coefficients-in-PROC-SURVEYREG/m-p/378138#M19856</link>
      <description>&lt;P&gt;Since SURVEYREG does not have a TEST statement that will allow multiple effects on it. Instead you should use a CONTRAST statement instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;test x1=x2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which is the same as&amp;nbsp;&lt;/P&gt;&lt;P&gt;x1-x2=0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;would translate to&amp;nbsp;&lt;BR /&gt;contrast 'test_label' x1 1 x2-1;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2017 13:42:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-compare-two-coefficients-in-PROC-SURVEYREG/m-p/378138#M19856</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2017-07-21T13:42:51Z</dc:date>
    </item>
  </channel>
</rss>

