<?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 Intepretation of quadratic effect in logistic regression in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Intepretation-of-quadratic-effect-in-logistic-regression/m-p/284710#M15018</link>
    <description>&lt;P&gt;&lt;FONT face="andale mono,times" size="4"&gt;Dear SAS forumers,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times" size="4"&gt;Can I please ask how do I interpret the age effect from the estimates produced by the code below?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times" size="4"&gt;Thank you very much.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Parameter&lt;/TD&gt;&lt;TD&gt;Estimate&lt;/TD&gt;&lt;TD&gt;Standard Error&lt;/TD&gt;&lt;TD&gt;P-value§&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Intercept&lt;/TD&gt;&lt;TD&gt;-2.5487&lt;/TD&gt;&lt;TD&gt;0.6559&lt;/TD&gt;&lt;TD&gt;0.0001&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Age&lt;/TD&gt;&lt;TD&gt;0.062&lt;/TD&gt;&lt;TD&gt;0.0267&lt;/TD&gt;&lt;TD&gt;0.0204&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Age in quadratic&lt;/TD&gt;&lt;TD&gt;-0.001&lt;/TD&gt;&lt;TD&gt;0.0003&lt;/TD&gt;&lt;TD&gt;0.0032&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc genmod data=dset2 plots=all desc;
	weight rimwgt;
	class gpwgt / param=glm;
	model Q352=age age2 ....... / dist=bin link = logit type3;
	estimate 'HD2 vs HD1' gpwgt  -1 1 0 0 / exp;      
        estimate 'HD3 vs HD1' gpwgt  -1 0 1 0 / exp;  
        estimate 'HD4 vs HD1' gpwgt  -1 0 0 1 / exp;  
	contrast  'Linear trend p-value' gpwgt -3 -1 1 3;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Jul 2016 00:27:58 GMT</pubDate>
    <dc:creator>Miracle</dc:creator>
    <dc:date>2016-07-15T00:27:58Z</dc:date>
    <item>
      <title>Intepretation of quadratic effect in logistic regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Intepretation-of-quadratic-effect-in-logistic-regression/m-p/284710#M15018</link>
      <description>&lt;P&gt;&lt;FONT face="andale mono,times" size="4"&gt;Dear SAS forumers,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times" size="4"&gt;Can I please ask how do I interpret the age effect from the estimates produced by the code below?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times" size="4"&gt;Thank you very much.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Parameter&lt;/TD&gt;&lt;TD&gt;Estimate&lt;/TD&gt;&lt;TD&gt;Standard Error&lt;/TD&gt;&lt;TD&gt;P-value§&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Intercept&lt;/TD&gt;&lt;TD&gt;-2.5487&lt;/TD&gt;&lt;TD&gt;0.6559&lt;/TD&gt;&lt;TD&gt;0.0001&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Age&lt;/TD&gt;&lt;TD&gt;0.062&lt;/TD&gt;&lt;TD&gt;0.0267&lt;/TD&gt;&lt;TD&gt;0.0204&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Age in quadratic&lt;/TD&gt;&lt;TD&gt;-0.001&lt;/TD&gt;&lt;TD&gt;0.0003&lt;/TD&gt;&lt;TD&gt;0.0032&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc genmod data=dset2 plots=all desc;
	weight rimwgt;
	class gpwgt / param=glm;
	model Q352=age age2 ....... / dist=bin link = logit type3;
	estimate 'HD2 vs HD1' gpwgt  -1 1 0 0 / exp;      
        estimate 'HD3 vs HD1' gpwgt  -1 0 1 0 / exp;  
        estimate 'HD4 vs HD1' gpwgt  -1 0 0 1 / exp;  
	contrast  'Linear trend p-value' gpwgt -3 -1 1 3;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2016 00:27:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Intepretation-of-quadratic-effect-in-logistic-regression/m-p/284710#M15018</guid>
      <dc:creator>Miracle</dc:creator>
      <dc:date>2016-07-15T00:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: Intepretation of quadratic effect in logistic regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Intepretation-of-quadratic-effect-in-logistic-regression/m-p/284731#M15019</link>
      <description>&lt;P&gt;&lt;FONT face="book antiqua,palatino" size="4"&gt;Hi,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="book antiqua,palatino" size="4"&gt;I have googled and found that&amp;nbsp;if the coefficient on age&amp;nbsp;is positive and the coefficient on age^2 is negative, that suggests that age&amp;nbsp;has a positive effect on &lt;SPAN&gt;Q352&lt;/SPAN&gt; until a turning point is reached, e.g. -0.062/(2*-0.001)=31. Beyond that value, age&amp;nbsp;has a negative impact on Q352.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="book antiqua,palatino" size="4"&gt;Is 31 the age in years? If so, can I say as one gets older, he/she is more likely to have Q352&amp;nbsp;until a turning point is reached, eg -0.062/(2*-0.001)=31. After 31 years old, he/she will be less ikely to have&amp;nbsp;Q352? Is it correct?&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="book antiqua,palatino" size="4"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="book antiqua,palatino" size="4"&gt;Thank you very much&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2016 02:33:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Intepretation-of-quadratic-effect-in-logistic-regression/m-p/284731#M15019</guid>
      <dc:creator>Miracle</dc:creator>
      <dc:date>2016-07-15T02:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Intepretation of quadratic effect in logistic regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Intepretation-of-quadratic-effect-in-logistic-regression/m-p/284934#M15032</link>
      <description>&lt;P&gt;I agree with that&amp;nbsp;interpretation. &amp;nbsp;The only caveat I have is that you should probably get the parameter estimates into a data set, and calculate from there. &amp;nbsp;Rounding errors may be critical in this interpretation. &amp;nbsp;Also, try calculating this at the confidence bounds of the parameters to get a feeling for how much variability there may be in the inflection point (it's easier than calculating the standard error of the inflection point using the delta method).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2016 18:57:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Intepretation-of-quadratic-effect-in-logistic-regression/m-p/284934#M15032</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2016-07-15T18:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: Intepretation of quadratic effect in logistic regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Intepretation-of-quadratic-effect-in-logistic-regression/m-p/285428#M15085</link>
      <description>&lt;P&gt;&lt;FONT face="andale mono,times" size="4"&gt;Hi Steve.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times" size="4"&gt;Thank you for your reply.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times" size="4"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;PRE&gt;&lt;FONT size="3"&gt;&lt;FONT face="courier new,courier"&gt;Parameter  DF  Estimate  Standard Error  Wald 95% Confidence Limits  Wald Chi-Square  Pr &amp;gt; ChiSq
Intercept   1	-2.5487	  0.6559	  -3.8342   -1.2633	       15.1	         0.0001				
age	    1	 0.062	  0.0267	   0.0096    0.1143	        5.37	         0.0204		
age2	    1	-0.001	  0.0003	  -0.0016   -0.0003	        8.67	 &lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;        0.0032	&lt;/FONT&gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;FONT face="andale mono, times" size="4"&gt;&lt;SPAN style="line-height: normal;"&gt;Inflection point and its confidence bounds as you suggested via -age/(2*age2),&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;FONT face="andale mono,times" size="4"&gt;&lt;FONT face="courier new,courier" size="3"&gt;                                                    inflection_
   Label           age               age2              point
Estimate       0.0619612101    -0.00095217047629       32.537
LowerWaldCL    0.0095774949    -0.00158594223929        3.019
UpperWaldCL    0.1143449253    -0.00031839871329      179.562&lt;/FONT&gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times" size="4"&gt;What does this indicate? It seems like there is a lot of&amp;nbsp;variability in&amp;nbsp;this inflection point with such wide confidence bounds(from 3 to&amp;nbsp;180 years old? We only have have individuals aged between 12 and 80 in our data). Is it an indication of dropping age2 in spite of being significant?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times" size="4"&gt;Another question is if 32.5years old is the turning point ignoring the large variability, is it correct to intepret the estimate from the first table as one year increase in age will increase Q352 by exp(0.062)=6.4% [between&amp;nbsp;exp(0.0096) =.96% and exp(0.1143)=12%]. However, it will be exp(-.001)=10% &lt;SPAN&gt;[between&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;exp(-0.0016)=16% and exp(-0.0003)=3%]&amp;nbsp;&lt;/SPAN&gt;less likely to have Q352 as every one year increase&amp;nbsp;in age after 32.5 years old.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times" size="4"&gt;By the way &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15363"&gt;@SteveDenham﻿&lt;/a&gt;, would you be able to provide me the reference to the delta method so I can have a read?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times" size="4"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times" size="4"&gt;Your insight is greatly appreciated.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2016 03:19:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Intepretation-of-quadratic-effect-in-logistic-regression/m-p/285428#M15085</guid>
      <dc:creator>Miracle</dc:creator>
      <dc:date>2016-07-19T03:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Intepretation of quadratic effect in logistic regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Intepretation-of-quadratic-effect-in-logistic-regression/m-p/285901#M15105</link>
      <description>&lt;P&gt;Not surprising that the "error" bounds are so wide--after all, it is a quadratic. &amp;nbsp;But that is why the delta method was worked out. &amp;nbsp;Here is a great source to get started (although the coding is in R):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.ats.ucla.edu/stat/r/faq/deltamethod.htm" target="_blank"&gt;http://www.ats.ucla.edu/stat/r/faq/deltamethod.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As far as interpreting, remember that the linear and quadratic terms are correlated, and so you must address both at once when looking at single-unit changes. &amp;nbsp;It is not like two separate regressors, where you can look at a unit change in one, and assume the other is unchanged.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 17:26:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Intepretation-of-quadratic-effect-in-logistic-regression/m-p/285901#M15105</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2016-07-20T17:26:25Z</dc:date>
    </item>
  </channel>
</rss>

