<?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: Marginal effect of logistic regression in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Marginal-effect-of-logistic-regression/m-p/591166#M15151</link>
    <description>Hello, Paige&lt;BR /&gt;&lt;BR /&gt;Yes. the slope of the probability of Y as X changes.&lt;BR /&gt;&lt;BR /&gt;Thank you for your help</description>
    <pubDate>Tue, 24 Sep 2019 14:25:45 GMT</pubDate>
    <dc:creator>VincentTang</dc:creator>
    <dc:date>2019-09-24T14:25:45Z</dc:date>
    <item>
      <title>Marginal effect of logistic regression</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Marginal-effect-of-logistic-regression/m-p/591164#M15149</link>
      <description>&lt;P&gt;Dear all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nice to meet you all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Recently, I met a problem in the estimation of logistic regression.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After running the logistic regression, the estimated coefficients are obtained. However, they are the coefficients of the log odds ratio. May I know is there any codes for finding out the marginal effects.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also attached my code here for your reference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc logistic data=edu2016;&lt;BR /&gt;class Ethnicity Age Gender / param=ref ref=first;&lt;BR /&gt;model PrimaryCompleted/Total = Ethnicity Age Gender Ethnicity*Age Ethnicity*Gender Age*Gender/ lackfit;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your help.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 14:14:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Marginal-effect-of-logistic-regression/m-p/591164#M15149</guid>
      <dc:creator>VincentTang</dc:creator>
      <dc:date>2019-09-24T14:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Marginal effect of logistic regression</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Marginal-effect-of-logistic-regression/m-p/591165#M15150</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/292039"&gt;@VincentTang&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Recently, I met a problem in the estimation of logistic regression.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After running the logistic regression, the estimated coefficients are obtained. However, they are the coefficients of the log odds ratio. May I know is there any codes for finding out the marginal effects.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;By marginal effects, do you mean the slope of the probability of Y as X changes (instead of the slope of log-odds ratio of Y as X changes)??&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 14:24:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Marginal-effect-of-logistic-regression/m-p/591165#M15150</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-09-24T14:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Marginal effect of logistic regression</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Marginal-effect-of-logistic-regression/m-p/591166#M15151</link>
      <description>Hello, Paige&lt;BR /&gt;&lt;BR /&gt;Yes. the slope of the probability of Y as X changes.&lt;BR /&gt;&lt;BR /&gt;Thank you for your help</description>
      <pubDate>Tue, 24 Sep 2019 14:25:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Marginal-effect-of-logistic-regression/m-p/591166#M15151</guid>
      <dc:creator>VincentTang</dc:creator>
      <dc:date>2019-09-24T14:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Marginal effect of logistic regression</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Marginal-effect-of-logistic-regression/m-p/591168#M15152</link>
      <description>&lt;P&gt;The slope of the probability of Y is not a linear function of X.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;The formula looks like this (from Wikipedia at&amp;nbsp;&lt;A href="https://en.wikipedia.org/wiki/Logistic_regression" target="_blank"&gt;https://en.wikipedia.org/wiki/Logistic_regression&lt;/A&gt;) for a regression with two x-variables and an intercept&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="mwe-math-element"&gt;&lt;IMG class="mwe-math-fallback-image-inline" src="https://wikimedia.org/api/rest_v1/media/math/render/svg/db26f390c839d7347b2ff7cc76ce84fd1f56d65c" border="0" alt="{\displaystyle p={\frac {b^{\beta _{0}+\beta _{1}x_{1}+\beta _{2}x_{2}}}{b^{\beta _{0}+\beta _{1}x_{1}+\beta _{2}x_{2}}+1}}={\frac {1}{1+b^{-(\beta _{0}+\beta _{1}x_{1}+\beta _{2}x_{2})}}}}" aria-hidden="true" /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="mwe-math-element"&gt;where the lower case &lt;EM&gt;b&lt;/EM&gt; is the base of the logarithm used, which is usually&amp;nbsp;&lt;EM&gt;e.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 14:30:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Marginal-effect-of-logistic-regression/m-p/591168#M15152</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-09-24T14:30:23Z</dc:date>
    </item>
  </channel>
</rss>

