<?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: Reverse parameters in multinomial logit regression in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Reverse-parameters-in-multinomial-logit-regression/m-p/357928#M18805</link>
    <description>&lt;P&gt;That is what I tried.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data edu.educationClean;
set edu.educationClean;
HIGH=0;
if edu3=2 then HIGH=1;
run;


proc logistic data=edu.educationClean;
class Langue(ref='0')  /param=ref;
model HIGH(ref='0')= Langue /link=glogit rsquare;
weight pond / norm;
where model=1;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It gives this output:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS Output&lt;/P&gt;
&lt;DIV class="branch"&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;
&lt;TABLE class="table" summary="Procedure Logistic: Parameter Estimates" frame="box" rules="all" cellspacing="0" cellpadding="5"&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="c b header" colspan="8" scope="colgroup"&gt;Analysis of Maximum Likelihood Estimates&lt;/TH&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l b header" scope="col"&gt;Parameter&lt;/TH&gt;
&lt;TH class="l b header" scope="col"&gt;&amp;nbsp;&lt;/TH&gt;
&lt;TH class="l b header" scope="col"&gt;HIGH&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;DF&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Estimate&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Standard&lt;BR /&gt;Error&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Wald&lt;BR /&gt;Chi-Square&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Pr&amp;nbsp;&amp;gt;&amp;nbsp;ChiSq&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH class="l rowheader" scope="row"&gt;Intercept&lt;/TH&gt;
&lt;TH class="l rowheader" scope="row"&gt;&amp;nbsp;&lt;/TH&gt;
&lt;TH class="l rowheader" scope="row"&gt;1&lt;/TH&gt;
&lt;TD class="r data"&gt;1&lt;/TD&gt;
&lt;TD class="r data"&gt;-0.4974&lt;/TD&gt;
&lt;TD class="r data"&gt;0.00963&lt;/TD&gt;
&lt;TD class="r data"&gt;2667.2291&lt;/TD&gt;
&lt;TD class="r data"&gt;&amp;lt;.0001&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l rowheader" scope="row"&gt;Langue&lt;/TH&gt;
&lt;TH class="l rowheader" scope="row"&gt;1&lt;/TH&gt;
&lt;TH class="l rowheader" scope="row"&gt;1&lt;/TH&gt;
&lt;TD class="r data"&gt;1&lt;/TD&gt;
&lt;TD class="r data"&gt;0.1913&lt;/TD&gt;
&lt;TD class="r data"&gt;0.0616&lt;/TD&gt;
&lt;TD class="r data"&gt;9.6420&lt;/TD&gt;
&lt;TD class="r data"&gt;0.0019&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l rowheader" scope="row"&gt;Langue&lt;/TH&gt;
&lt;TH class="l rowheader" scope="row"&gt;2&lt;/TH&gt;
&lt;TH class="l rowheader" scope="row"&gt;1&lt;/TH&gt;
&lt;TD class="r data"&gt;1&lt;/TD&gt;
&lt;TD class="r data"&gt;-0.7824&lt;/TD&gt;
&lt;TD class="r data"&gt;0.0675&lt;/TD&gt;
&lt;TD class="r data"&gt;134.4464&lt;/TD&gt;
&lt;TD class="r data"&gt;&amp;lt;.0001&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which is not what I expected as parameters. From the multinomial outputs, in my mind, the parameter for edu3=2 when langue=1 should be -(-0.0533+-0.2527)=0.306. However, it is 0.1913 when using a binomial regression. Maybe something is wrong with my reasoning.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 12 May 2017 09:05:33 GMT</pubDate>
    <dc:creator>Demographer</dc:creator>
    <dc:date>2017-05-12T09:05:33Z</dc:date>
    <item>
      <title>Reverse parameters in multinomial logit regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Reverse-parameters-in-multinomial-logit-regression/m-p/357787#M18783</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have this multinomial logit model:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc logistic data=edu.educationClean;
class Langue(ref='0')  /param=ref;
model edu3(ref='2')= Langue /link=glogit rsquare;
weight pond / norm;
where model=1;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;With the following output:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="branch"&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;
&lt;TABLE class="table" summary="Procedure Logistic: Parameter Estimates" frame="box" rules="all" cellspacing="0" cellpadding="5"&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="c b header" colspan="8" scope="colgroup"&gt;Analysis of Maximum Likelihood Estimates&lt;/TH&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l b header" scope="col"&gt;Parameter&lt;/TH&gt;
&lt;TH class="l b header" scope="col"&gt;&amp;nbsp;&lt;/TH&gt;
&lt;TH class="l b header" scope="col"&gt;edu3&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;DF&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Estimate&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Standard&lt;BR /&gt;Error&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Wald&lt;BR /&gt;Chi-Square&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Pr&amp;nbsp;&amp;gt;&amp;nbsp;ChiSq&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH class="l rowheader" scope="row"&gt;Intercept&lt;/TH&gt;
&lt;TH class="l rowheader" scope="row"&gt;&amp;nbsp;&lt;/TH&gt;
&lt;TH class="l rowheader" scope="row"&gt;0&lt;/TH&gt;
&lt;TD class="r data"&gt;1&lt;/TD&gt;
&lt;TD class="r data"&gt;-0.7505&lt;/TD&gt;
&lt;TD class="r data"&gt;0.0134&lt;/TD&gt;
&lt;TD class="r data"&gt;3131.3792&lt;/TD&gt;
&lt;TD class="r data"&gt;&amp;lt;.0001&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l rowheader" scope="row"&gt;Intercept&lt;/TH&gt;
&lt;TH class="l rowheader" scope="row"&gt;&amp;nbsp;&lt;/TH&gt;
&lt;TH class="l rowheader" scope="row"&gt;1&lt;/TH&gt;
&lt;TD class="r data"&gt;1&lt;/TD&gt;
&lt;TD class="r data"&gt;0.1590&lt;/TD&gt;
&lt;TD class="r data"&gt;0.0103&lt;/TD&gt;
&lt;TD class="r data"&gt;236.5849&lt;/TD&gt;
&lt;TD class="r data"&gt;&amp;lt;.0001&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l rowheader" scope="row"&gt;Langue&lt;/TH&gt;
&lt;TH class="l rowheader" scope="row"&gt;1&lt;/TH&gt;
&lt;TH class="l rowheader" scope="row"&gt;0&lt;/TH&gt;
&lt;TD class="r data"&gt;1&lt;/TD&gt;
&lt;TD class="r data"&gt;-0.0533&lt;/TD&gt;
&lt;TD class="r data"&gt;0.0841&lt;/TD&gt;
&lt;TD class="r data"&gt;0.4021&lt;/TD&gt;
&lt;TD class="r data"&gt;0.5260&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l rowheader" scope="row"&gt;Langue&lt;/TH&gt;
&lt;TH class="l rowheader" scope="row"&gt;1&lt;/TH&gt;
&lt;TH class="l rowheader" scope="row"&gt;1&lt;/TH&gt;
&lt;TD class="r data"&gt;1&lt;/TD&gt;
&lt;TD class="r data"&gt;-0.2527&lt;/TD&gt;
&lt;TD class="r data"&gt;0.0677&lt;/TD&gt;
&lt;TD class="r data"&gt;13.9402&lt;/TD&gt;
&lt;TD class="r data"&gt;0.0002&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l rowheader" scope="row"&gt;Langue&lt;/TH&gt;
&lt;TH class="l rowheader" scope="row"&gt;2&lt;/TH&gt;
&lt;TH class="l rowheader" scope="row"&gt;0&lt;/TH&gt;
&lt;TD class="r data"&gt;1&lt;/TD&gt;
&lt;TD class="r data"&gt;1.5045&lt;/TD&gt;
&lt;TD class="r data"&gt;0.0729&lt;/TD&gt;
&lt;TD class="r data"&gt;426.1495&lt;/TD&gt;
&lt;TD class="r data"&gt;&amp;lt;.0001&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l rowheader" scope="row"&gt;Langue&lt;/TH&gt;
&lt;TH class="l rowheader" scope="row"&gt;2&lt;/TH&gt;
&lt;TH class="l rowheader" scope="row"&gt;1&lt;/TH&gt;
&lt;TD class="r data"&gt;1&lt;/TD&gt;
&lt;TD class="r data"&gt;0.2267&lt;/TD&gt;
&lt;TD class="r data"&gt;0.0773&lt;/TD&gt;
&lt;TD class="r data"&gt;8.6057&lt;/TD&gt;
&lt;TD class="r data"&gt;0.0034&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In addition to this, I would like to have reverse parameters (I mean edu3=2 vs other) and their p values. I think I can do it manually (but maybe I'm wrong), for example, for langue=1, by doing -(-0.0533+-0.2527) to get the parameter for edu3=2 compared to other categories. However, with this method, I don't get p values. Is there a way to produce this automacially in the output?&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 08:42:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Reverse-parameters-in-multinomial-logit-regression/m-p/357787#M18783</guid>
      <dc:creator>Demographer</dc:creator>
      <dc:date>2017-05-11T08:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Reverse parameters in multinomial logit regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Reverse-parameters-in-multinomial-logit-regression/m-p/357919#M18801</link>
      <description>&lt;P&gt;That implies that you want to model a logit defined as log[ Pr(Edu3=2)/(1-Pr(Edu3=2) ]. &amp;nbsp;To do this, simply create a new response variable: new=(edu3=2); and fit a binary logistic model using it as the response.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 14:38:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Reverse-parameters-in-multinomial-logit-regression/m-p/357919#M18801</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2017-05-11T14:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: Reverse parameters in multinomial logit regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Reverse-parameters-in-multinomial-logit-regression/m-p/357928#M18805</link>
      <description>&lt;P&gt;That is what I tried.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data edu.educationClean;
set edu.educationClean;
HIGH=0;
if edu3=2 then HIGH=1;
run;


proc logistic data=edu.educationClean;
class Langue(ref='0')  /param=ref;
model HIGH(ref='0')= Langue /link=glogit rsquare;
weight pond / norm;
where model=1;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It gives this output:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS Output&lt;/P&gt;
&lt;DIV class="branch"&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;
&lt;TABLE class="table" summary="Procedure Logistic: Parameter Estimates" frame="box" rules="all" cellspacing="0" cellpadding="5"&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="c b header" colspan="8" scope="colgroup"&gt;Analysis of Maximum Likelihood Estimates&lt;/TH&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l b header" scope="col"&gt;Parameter&lt;/TH&gt;
&lt;TH class="l b header" scope="col"&gt;&amp;nbsp;&lt;/TH&gt;
&lt;TH class="l b header" scope="col"&gt;HIGH&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;DF&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Estimate&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Standard&lt;BR /&gt;Error&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Wald&lt;BR /&gt;Chi-Square&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Pr&amp;nbsp;&amp;gt;&amp;nbsp;ChiSq&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH class="l rowheader" scope="row"&gt;Intercept&lt;/TH&gt;
&lt;TH class="l rowheader" scope="row"&gt;&amp;nbsp;&lt;/TH&gt;
&lt;TH class="l rowheader" scope="row"&gt;1&lt;/TH&gt;
&lt;TD class="r data"&gt;1&lt;/TD&gt;
&lt;TD class="r data"&gt;-0.4974&lt;/TD&gt;
&lt;TD class="r data"&gt;0.00963&lt;/TD&gt;
&lt;TD class="r data"&gt;2667.2291&lt;/TD&gt;
&lt;TD class="r data"&gt;&amp;lt;.0001&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l rowheader" scope="row"&gt;Langue&lt;/TH&gt;
&lt;TH class="l rowheader" scope="row"&gt;1&lt;/TH&gt;
&lt;TH class="l rowheader" scope="row"&gt;1&lt;/TH&gt;
&lt;TD class="r data"&gt;1&lt;/TD&gt;
&lt;TD class="r data"&gt;0.1913&lt;/TD&gt;
&lt;TD class="r data"&gt;0.0616&lt;/TD&gt;
&lt;TD class="r data"&gt;9.6420&lt;/TD&gt;
&lt;TD class="r data"&gt;0.0019&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l rowheader" scope="row"&gt;Langue&lt;/TH&gt;
&lt;TH class="l rowheader" scope="row"&gt;2&lt;/TH&gt;
&lt;TH class="l rowheader" scope="row"&gt;1&lt;/TH&gt;
&lt;TD class="r data"&gt;1&lt;/TD&gt;
&lt;TD class="r data"&gt;-0.7824&lt;/TD&gt;
&lt;TD class="r data"&gt;0.0675&lt;/TD&gt;
&lt;TD class="r data"&gt;134.4464&lt;/TD&gt;
&lt;TD class="r data"&gt;&amp;lt;.0001&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which is not what I expected as parameters. From the multinomial outputs, in my mind, the parameter for edu3=2 when langue=1 should be -(-0.0533+-0.2527)=0.306. However, it is 0.1913 when using a binomial regression. Maybe something is wrong with my reasoning.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 09:05:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Reverse-parameters-in-multinomial-logit-regression/m-p/357928#M18805</guid>
      <dc:creator>Demographer</dc:creator>
      <dc:date>2017-05-12T09:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Reverse parameters in multinomial logit regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Reverse-parameters-in-multinomial-logit-regression/m-p/358027#M18812</link>
      <description>&lt;P&gt;The generalized logit model you fit originaly is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;l0=log(p0/p2)=int0+lang01+lang02&lt;BR /&gt;l1=log(p1/p2)=int1+lang11+lang12&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You now fit the model l2=log(p2/(p0+p1))=int+lang1+lang2.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When lang=1, under that first model:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;l0=int0+lang01&lt;BR /&gt;l1=int1+lang11&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And in the second model:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;l2=int+lang1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Algebraically, I don't see that -(lang01+lang11) as you want to do, gets you to the lang1 parameter in the second model.&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 19:36:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Reverse-parameters-in-multinomial-logit-regression/m-p/358027#M18812</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2017-05-11T19:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Reverse parameters in multinomial logit regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Reverse-parameters-in-multinomial-logit-regression/m-p/358035#M18813</link>
      <description>&lt;P&gt;So there is no way to get log(p2/(p0+p1)) directly from the multinomial logit parameters?&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 20:07:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Reverse-parameters-in-multinomial-logit-regression/m-p/358035#M18813</guid>
      <dc:creator>Demographer</dc:creator>
      <dc:date>2017-05-11T20:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: Reverse parameters in multinomial logit regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Reverse-parameters-in-multinomial-logit-regression/m-p/358177#M18821</link>
      <description>&lt;P&gt;My reasoning was the following:&lt;/P&gt;
&lt;P&gt;In a binomial logit, when we change the reference category of the modelized variable, parameters for explainatory variables are just the negative. For example, in my binomial logit, if the reference category were 1 rather than 0, then parameter for langue=1 would be -(0.1913). So I though it was the same for a multinomial logit. Maybe, obviously, I'm wrong.&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 08:25:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Reverse-parameters-in-multinomial-logit-regression/m-p/358177#M18821</guid>
      <dc:creator>Demographer</dc:creator>
      <dc:date>2017-05-12T08:25:27Z</dc:date>
    </item>
  </channel>
</rss>

