<?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 can I compare coefficients accross models in proc surveyreg? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-compare-coefficients-accross-models-in-proc-surveyreg/m-p/684858#M32969</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A quick question. What if I don't have the exact same set of independent variables in the two models? I still want to compare the coefficient of the interaction x1*x2 across models. How can I do an F-test here?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Sep 2020 03:13:27 GMT</pubDate>
    <dc:creator>lezgin</dc:creator>
    <dc:date>2020-09-18T03:13:27Z</dc:date>
    <item>
      <title>How can I compare coefficients accross models in proc surveyreg?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-compare-coefficients-accross-models-in-proc-surveyreg/m-p/683000#M32843</link>
      <description>&lt;P&gt;I am running two separate regressions using proc surveyreg as follows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc surveyreg data=&lt;STRONG&gt;have1&lt;/STRONG&gt;; cluster date;&lt;BR /&gt;model y= x1 x2 x1*x2 x3 x4/ adjrsq;run;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc surveyreg data=&lt;STRONG&gt;have2&lt;/STRONG&gt;; cluster date;&lt;BR /&gt;model y= x1 x2 x1*x2 x3 x4/ adjrsq;run;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to test whether the interaction term x1*x2 from the first model equals x1*x2 from the second model. I can compare coefficients within the same model by using the contrast statement but I want to do it for two separate models. I would appreciate any help.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 17:29:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-compare-coefficients-accross-models-in-proc-surveyreg/m-p/683000#M32843</guid>
      <dc:creator>lezgin</dc:creator>
      <dc:date>2020-09-10T17:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: How can I compare coefficients accross models in proc surveyreg?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-compare-coefficients-accross-models-in-proc-surveyreg/m-p/683063#M32846</link>
      <description>&lt;P&gt;To do this you need to fit a single model to all of the data. Combine (concatenate) the two data sets and add a binary group variable that indicates the observations in each part of the data. Then use that variable to interact with the model parameters as described in &lt;A href="http://support.sas.com/kb/24177" target="_self"&gt;this note&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 20:08:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-compare-coefficients-accross-models-in-proc-surveyreg/m-p/683063#M32846</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2020-09-10T20:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: How can I compare coefficients accross models in proc surveyreg?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-compare-coefficients-accross-models-in-proc-surveyreg/m-p/683145#M32851</link>
      <description>thank you!</description>
      <pubDate>Fri, 11 Sep 2020 02:32:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-compare-coefficients-accross-models-in-proc-surveyreg/m-p/683145#M32851</guid>
      <dc:creator>lezgin</dc:creator>
      <dc:date>2020-09-11T02:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: How can I compare coefficients accross models in proc surveyreg?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-compare-coefficients-accross-models-in-proc-surveyreg/m-p/684858#M32969</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A quick question. What if I don't have the exact same set of independent variables in the two models? I still want to compare the coefficient of the interaction x1*x2 across models. How can I do an F-test here?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 03:13:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-compare-coefficients-accross-models-in-proc-surveyreg/m-p/684858#M32969</guid>
      <dc:creator>lezgin</dc:creator>
      <dc:date>2020-09-18T03:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: How can I compare coefficients accross models in proc surveyreg?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-compare-coefficients-accross-models-in-proc-surveyreg/m-p/685067#M32983</link>
      <description>&lt;P&gt;Well, that complicates things. Let's say you have one additional predictor in one of the models. Fit the model that has the extra predictor, then modify the response in that data set by subtracting the product of the additional predictor and its associated parameter estimate. Now, if you fit the model without the additional predictor to that modified response, the parameter estimates for the other predictors should be unchanged. You can then proceed with the method I mentioned earlier now that the predictors in the two models are the same.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 19:04:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-compare-coefficients-accross-models-in-proc-surveyreg/m-p/685067#M32983</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2020-09-18T19:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: How can I compare coefficients accross models in proc surveyreg?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-compare-coefficients-accross-models-in-proc-surveyreg/m-p/685109#M32985</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Well, that complicates things. Let's say you have one additional predictor in one of the models. Fit the model that has the extra predictor, then modify the response in that data set by subtracting the product of the additional predictor and its associated parameter estimate. Now, if you fit the model without the additional predictor to that modified response, the parameter estimates for the other predictors should be unchanged. You can then proceed with the method I mentioned earlier now that the predictors in the two models are the same.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;But this no longer answers the original question. Once you add a term in the model, and then somehow try to subtract out its effect, you are not getting the same coefficient as when you fit the model to all terms. I consider the question of testing the equality of model coefficients to be one that cannot be logically answered unless both models have the same terms.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 20:52:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-compare-coefficients-accross-models-in-proc-surveyreg/m-p/685109#M32985</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-09-18T20:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: How can I compare coefficients accross models in proc surveyreg?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-compare-coefficients-accross-models-in-proc-surveyreg/m-p/685111#M32986</link>
      <description>&lt;P&gt;Try it.&amp;nbsp; Suppose you have, like OP suggests, two simple regression models, say:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;y=x1 x2 x3 , and&amp;nbsp;&lt;/P&gt;
&lt;P&gt;y=x1 x2 x3 x4&lt;/P&gt;
&lt;P&gt;if you fit the second model and the x4 parameter estimate is 2.3, then if you fit the model&lt;/P&gt;
&lt;P&gt;y-2.3*x4=x1 x2 x3&lt;/P&gt;
&lt;P&gt;you get the same parameter estimates for x1-x3 and you can then combine these data sets and make a comparison of, say, the two x1 parameters.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 21:00:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-compare-coefficients-accross-models-in-proc-surveyreg/m-p/685111#M32986</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2020-09-18T21:00:18Z</dc:date>
    </item>
  </channel>
</rss>

