<?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: Logistic spl effect, proc plm, and proc adaptivereg in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Logistic-spl-effect-proc-plm-and-proc-adaptivereg/m-p/604061#M17019</link>
    <description>&lt;P&gt;I'm afraid I don't understand Excel well enough to offer an opinion. I was really asking to understand what you did in Excel, the idea rather than the exact Excel functions and calculations.&lt;/P&gt;</description>
    <pubDate>Thu, 14 Nov 2019 12:02:03 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2019-11-14T12:02:03Z</dc:date>
    <item>
      <title>Logistic spl effect, proc plm, and proc adaptivereg</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Logistic-spl-effect-proc-plm-and-proc-adaptivereg/m-p/603842#M16986</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I would like to ask whether the below graphs are all different for some reasons and whether I can fix them out or I can have supporting idea to explain them.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Three of them come from exactly the same data but with different proc procedures.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Major concern is that proc plm gave me a probability with CI, which I wanted to have, but that is different from logistic with spline effect also different from what I have from excel graph.&lt;/P&gt;&lt;P&gt;I have the blue graph to estimate the probability value based on the equation, which looks similar to adaptivereg and logistic spline.&lt;/P&gt;&lt;P&gt;Whilst the plm graph are linear, why the rest of them have u shape? Is this because of the logic behind each procedures are different of I have done in wrong way round?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another question is, I guess logistic spline and the excel graph are supposed to be&amp;nbsp; the same as the both have u shape.&lt;/P&gt;&lt;P&gt;But then logistic spline has its lowest probability at age 26-27 whilst the blue graph, which I have made via excel has 30-32 at its lowest.. Does it look like excel seems to be wrong? But then I have checked many times but havent found what was wrong.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But anyway, please let me know whether it seems the blue one needs to be changes since logistic with spline effect are right &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/33935i78C3357E4C09D899/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture1.PNG" style="width: 367px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/33934iD5466AE4183A4DAC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture1.PNG" alt="Capture1.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 240px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/33936iED02F06F5AF6D803/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 12:53:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Logistic-spl-effect-proc-plm-and-proc-adaptivereg/m-p/603842#M16986</guid>
      <dc:creator>Daniellekeem</dc:creator>
      <dc:date>2019-11-13T12:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic spl effect, proc plm, and proc adaptivereg</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Logistic-spl-effect-proc-plm-and-proc-adaptivereg/m-p/603848#M16988</link>
      <description>&lt;P&gt;Calling&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 13:04:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Logistic-spl-effect-proc-plm-and-proc-adaptivereg/m-p/603848#M16988</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-11-13T13:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic spl effect, proc plm, and proc adaptivereg</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Logistic-spl-effect-proc-plm-and-proc-adaptivereg/m-p/603850#M16989</link>
      <description>&lt;P&gt;I would not expect Logistic and AdaptiveReg to give the same answers as they probably use different algorithms to fit the model to the data. As far as the PLM output, I think you haven't explained how you got PLM to work, it has to take the results of a modeling PROC in SAS, but you don't say what PROC or what model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't say anything about Excel, as you didn't explain what you did there. However, I am wondering if the data is really a true quadratic as you seem to be showing in your Excel output.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 13:15:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Logistic-spl-effect-proc-plm-and-proc-adaptivereg/m-p/603850#M16989</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-11-13T13:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic spl effect, proc plm, and proc adaptivereg</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Logistic-spl-effect-proc-plm-and-proc-adaptivereg/m-p/603851#M16990</link>
      <description>&lt;P&gt;It would be useful to see the code that generates each graph. In particular, the PLM output is based on what model and what procedure?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A spline is a piecewise polynomial on intervals that are determined by the location of the knots. The default placement of the knots might explain the difference between logistic and excel (but I am not sure).&amp;nbsp; The LOGISTIC and ADAPTIVEREG outputs are qualitatively similar; the differences are likely due to differences in the methods. The PLM output predicts probabilities between 0.2 and 0.1, which agrees with the other plots, but it you are using a linear model, it will fit a least squares line, whch would explain why that model is not U-shaped.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 13:15:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Logistic-spl-effect-proc-plm-and-proc-adaptivereg/m-p/603851#M16990</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-11-13T13:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic spl effect, proc plm, and proc adaptivereg</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Logistic-spl-effect-proc-plm-and-proc-adaptivereg/m-p/604024#M17015</link>
      <description>&lt;P&gt;Thanks for your reply!!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the code!&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC LOGISTIC DATA=DATA;			
	MODEL HEALTH(EVENT='1')=AGE ;		
	STORE LOGITMODEL; RUN;                                   		

PROC PLM SOURCE=LOGITMODEL;
		EFFECTPLOT FIT(X=AGE); RUN;  /*logistic plm*/&lt;BR /&gt;&lt;BR /&gt;PROC ADAPTIVEREG DATA=HEALTH;&lt;BR /&gt;MODEL HEALTH(EVENT='1')=AGE;&lt;BR /&gt;OUTPUT OUT = NONPARA_HEALTH P(ILINK) ; RUN;  &lt;BR /&gt;PROC SGPLOT DATA=NONPARA_HEALTH ;&lt;BR /&gt;BAND X=AGE;   /*but it does not agive CI as PLM did...*/&lt;BR /&gt;SERIES X=AGE Y=PRED ; RUN;        /*nonparametric method*/&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;PROC LOGISTIC DATA=HEALTH PLOTS=NONE;&lt;BR /&gt;EFFECT SPL= SPLINE(AGE/DETAILS NATURALCUBIC BASIS=TPF(NOINT) KNOTMETHOD=PERCENTILES(5) );&lt;BR /&gt;MODEL HEALTH (EVENT='1')= AGE_19;&lt;BR /&gt;OUTPUT OUT=PROBABILITY PREDICTED=PREDPROB; RUN;&lt;BR /&gt;PROC SGPLOT DATA= PROBABILITY NOAUTOLEGEND; RUN; /*PARAMETRIC LOGISTIC WITH SPLINE EFFECT*/&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2019 06:37:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Logistic-spl-effect-proc-plm-and-proc-adaptivereg/m-p/604024#M17015</guid>
      <dc:creator>Daniellekeem</dc:creator>
      <dc:date>2019-11-14T06:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic spl effect, proc plm, and proc adaptivereg</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Logistic-spl-effect-proc-plm-and-proc-adaptivereg/m-p/604028#M17016</link>
      <description>&lt;P&gt;Thanks for your reply!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the process how I get the quadratic form.&lt;/P&gt;&lt;P&gt;Age is continuous variable(from 20-29) and from logistic regression got the coefficient value and intercept.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2019 14:03:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Logistic-spl-effect-proc-plm-and-proc-adaptivereg/m-p/604028#M17016</guid>
      <dc:creator>Daniellekeem</dc:creator>
      <dc:date>2019-11-15T14:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic spl effect, proc plm, and proc adaptivereg</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Logistic-spl-effect-proc-plm-and-proc-adaptivereg/m-p/604061#M17019</link>
      <description>&lt;P&gt;I'm afraid I don't understand Excel well enough to offer an opinion. I was really asking to understand what you did in Excel, the idea rather than the exact Excel functions and calculations.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2019 12:02:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Logistic-spl-effect-proc-plm-and-proc-adaptivereg/m-p/604061#M17019</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-11-14T12:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic spl effect, proc plm, and proc adaptivereg</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Logistic-spl-effect-proc-plm-and-proc-adaptivereg/m-p/604098#M17022</link>
      <description>&lt;P&gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;Whilst the plm graph are linear, why the rest of them have u shape? &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;gt; Is this because of the logic behind each procedures are different of I have done in wrong way round?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes. It is because the procedures treat the explanatory variable differently.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The first model in your code is a LINEAR model in PROC LOGISTIC that uses only age as the explanatory variable. It is plotted by using the EFFECTPLOT stmt in PROC PLM. By definition, this model will be a logistic curve ("sigmoid shape"). Because age does not have a large effect when predicting Health, the sigmoid curve is very flat and looks almost linear.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The second model is ADAPTIVEREG, which uses spline regression and uses an algorithm to automatically choose knots (thus the "adaptive" part of the name).&amp;nbsp; Age is not represented as a single variable, but as several spline effects. Therefore, this model can result in a U-shaped fit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The third model is LOGISTIC with spline effects (although I think you misspecified the MODEL stmt, which should be MODEL HEALTH=SPL). This model uses a basic of cubic and 5 interior knots. Again, because Age is represented by multiple spline effects, this model can result in a U-shaped fit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;Major concern is that proc plm gave me a probability with CI, which I wanted to have&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Confidence limits for predicted values are created under the assumption that the model is correctly specified. If you use a linear model to fit data that do not look like the model, the CLs are useless. I think in your case, the data indicate a nonlinear effect of Age. Therefore you should not use the linear LOGISTIC model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2019 13:50:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Logistic-spl-effect-proc-plm-and-proc-adaptivereg/m-p/604098#M17022</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-11-14T13:50:23Z</dc:date>
    </item>
  </channel>
</rss>

