<?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 Change in parameter estimates in logistic regression in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Change-in-parameter-estimates-in-logistic-regression/m-p/254794#M48627</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I need some help with this problem i am trying to solve. I am running a logistic regresssion model. After running the full model, i removed one variable from the full model. I want to see how removing that one variable affected the betas (parameter estimates) of the other variables in the model.&lt;/P&gt;&lt;P&gt;I will be very grateful if i can get an answer to this.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Sun, 06 Mar 2016 03:09:46 GMT</pubDate>
    <dc:creator>atijjani</dc:creator>
    <dc:date>2016-03-06T03:09:46Z</dc:date>
    <item>
      <title>Change in parameter estimates in logistic regression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Change-in-parameter-estimates-in-logistic-regression/m-p/254794#M48627</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I need some help with this problem i am trying to solve. I am running a logistic regresssion model. After running the full model, i removed one variable from the full model. I want to see how removing that one variable affected the betas (parameter estimates) of the other variables in the model.&lt;/P&gt;&lt;P&gt;I will be very grateful if i can get an answer to this.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 06 Mar 2016 03:09:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Change-in-parameter-estimates-in-logistic-regression/m-p/254794#M48627</guid>
      <dc:creator>atijjani</dc:creator>
      <dc:date>2016-03-06T03:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: Change in parameter estimates in logistic regression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Change-in-parameter-estimates-in-logistic-regression/m-p/254796#M48628</link>
      <description>&lt;P&gt;Sorry, It's unclear what your question is. If you have a question on code, please include your current code.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Mar 2016 03:14:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Change-in-parameter-estimates-in-logistic-regression/m-p/254796#M48628</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-03-06T03:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: Change in parameter estimates in logistic regression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Change-in-parameter-estimates-in-logistic-regression/m-p/254801#M48629</link>
      <description>&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;Assuming that i have a logisic regression model with the full model below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc logistic data=temp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; class sex race hospital snf;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; model read=sex race hospital snf;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and then i reduced model as below&amp;nbsp;(it is without the variable snf)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc logistic data=temp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;class sex race hospital;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;model read=sex race hospital;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to see how removing snf from the full model changed the betas (parameter estimates) for other variables in the reduced model.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Mar 2016 03:38:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Change-in-parameter-estimates-in-logistic-regression/m-p/254801#M48629</guid>
      <dc:creator>atijjani</dc:creator>
      <dc:date>2016-03-06T03:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Change in parameter estimates in logistic regression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Change-in-parameter-estimates-in-logistic-regression/m-p/254802#M48630</link>
      <description>In other words, i want to check for potential confounding effect of snf.</description>
      <pubDate>Sun, 06 Mar 2016 03:38:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Change-in-parameter-estimates-in-logistic-regression/m-p/254802#M48630</guid>
      <dc:creator>atijjani</dc:creator>
      <dc:date>2016-03-06T03:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Change in parameter estimates in logistic regression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Change-in-parameter-estimates-in-logistic-regression/m-p/254804#M48631</link>
      <description>&lt;OL&gt;
&lt;LI&gt;Capture the parameterEstimates from each table&lt;/LI&gt;
&lt;LI&gt;Merge tables together - rename estimate variable - I can't remember what it's called at the moment. If you don't rename the variable will overwrite and you won't get valid values.&lt;/LI&gt;
&lt;LI&gt;Calculate the difference&lt;/LI&gt;
&lt;/OL&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*1*/
ods table parameterestimates=model1;
proc logistic data=temp;
    class sex race hospital snf;
    model read=sex race hospital snf;
run;

ods table parameterestimates=model2;
proc logistic data=temp;
    class sex race hospital snf;
    model read=sex race hospital;
run;

data comparison;
/*2*/
merge model1 (Rename=estimate=estimate1) 
           model2 (rename=estimate=estimate2);
by variable;
/*3*/
diff=estimate1-estimate2;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 06 Mar 2016 03:48:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Change-in-parameter-estimates-in-logistic-regression/m-p/254804#M48631</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-03-06T03:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Change in parameter estimates in logistic regression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Change-in-parameter-estimates-in-logistic-regression/m-p/254805#M48632</link>
      <description>Thank you so much. Let me see if it works</description>
      <pubDate>Sun, 06 Mar 2016 03:57:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Change-in-parameter-estimates-in-logistic-regression/m-p/254805#M48632</guid>
      <dc:creator>atijjani</dc:creator>
      <dc:date>2016-03-06T03:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Change in parameter estimates in logistic regression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Change-in-parameter-estimates-in-logistic-regression/m-p/254806#M48633</link>
      <description>&lt;P&gt;I modified the solution you gave and it worked perfectly well. Thank you so much for your input Reeza.&lt;/P&gt;&lt;P&gt;Below is the complete code for anyone with similar problem:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*1*/
ods table parameterestimates=model1;
proc logistic data=temp;
   class sex race hospital snf;
    model read=sex race hospital snf;
run;

ods table parameterestimates=model2;
proc logistic data=temp;
    class sex race hospital;
    model read=sex race hospital;
run;

proc sort data=model1;
  by variable;

proc sort data=model2;
  by variable;
run;

data comparison;
/*2*/
merge model1 (Rename=estimate=estimate1) 
           model2 (rename=estimate=estimate2);
by variable;
/*3*/
diff=((estimate1-estimate2)/estimate2)*100;
run;

proc print data=comparison;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 06 Mar 2016 04:21:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Change-in-parameter-estimates-in-logistic-regression/m-p/254806#M48633</guid>
      <dc:creator>atijjani</dc:creator>
      <dc:date>2016-03-06T04:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: Change in parameter estimates in logistic regression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Change-in-parameter-estimates-in-logistic-regression/m-p/254807#M48634</link>
      <description>&lt;P&gt;Use backward seletion + include= option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data class;
 set sashelp.class;
 if _n_ in (1:9) then y=1;
  else y=0;
run;

proc logistic data=class;
    class sex;
    model y(event='1')= sex age weight height/details selection=backward include=3;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 06 Mar 2016 04:32:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Change-in-parameter-estimates-in-logistic-regression/m-p/254807#M48634</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-03-06T04:32:54Z</dc:date>
    </item>
  </channel>
</rss>

