<?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: PROC GAMPL (logistic) spline estimates in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GAMPL-logistic-spline-estimates/m-p/532288#M26835</link>
    <description>&lt;P&gt;I&amp;nbsp;updated the code below from the version I posted a couple of hours ago. Has the same statistical output but now outputs predictions and confidence intervals (Bayesianwise, right). I suppose these latter values&amp;nbsp;can be&amp;nbsp;used to get odds now, but would it be correct to do, say p / 1-p for the predictions and intervals? Thank you for the help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ODS GRAPHICS ON;										 
PROC GAMPL DATA=pharm_vanc_2 plots SEED=12345;;
	WHERE 	trough_10 GE 0 and 
			trough_10 &amp;lt; 3 and 
			PMA GE 1 and 
			PMA LE 3;
	CLASS 	PMA  (REF='3') /*oldest*/
			initial_dose_kg (REF='1')	/ PARAM=REF;
	MODEL trough_10 (EVENT='1')= 		param(PMA)
						param(Initial_dose_kg)
						spline(zSCr)
							/dist=binary
							LINK=logit
							SCALE=mle;
	ID 	trough_10
		PMA 
		Initial_dose_kg
		ZSCr;
	OUTPUT OUT=scoredata 	predicted
				STD
				UPPER
				LOWER;
RUN;
ODS GRAPHICS OFF;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 02 Feb 2019 21:02:41 GMT</pubDate>
    <dc:creator>H</dc:creator>
    <dc:date>2019-02-02T21:02:41Z</dc:date>
    <item>
      <title>PROC GAMPL (logistic) spline estimates</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GAMPL-logistic-spline-estimates/m-p/532069#M26825</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAS image.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26761i96CDD8E6E4B03020/image-size/large?v=v2&amp;amp;px=999" role="button" title="SAS image.png" alt="SAS image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am fitting a GAMPL (logistic) model with binary outcome and two categorical and one continuous predictors. The model reveals a nonlinear effect for the continuous variable, see below. I was wondering what options I have for presenting estimates for this term? I am reporting adjusted odds ratios for the other terms. In the below graph, are the y-axis values log odds? If so, can I output these values with their CI values&amp;nbsp;some how and calculate their odds via exponentiating?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;H&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 16:03:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GAMPL-logistic-spline-estimates/m-p/532069#M26825</guid>
      <dc:creator>H</dc:creator>
      <dc:date>2019-02-01T16:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GAMPL (logistic) spline estimates</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GAMPL-logistic-spline-estimates/m-p/532273#M26834</link>
      <description>&lt;P&gt;Please post your PROC GAMPL&amp;nbsp;code.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Feb 2019 11:24:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GAMPL-logistic-spline-estimates/m-p/532273#M26834</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-02-02T11:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GAMPL (logistic) spline estimates</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GAMPL-logistic-spline-estimates/m-p/532288#M26835</link>
      <description>&lt;P&gt;I&amp;nbsp;updated the code below from the version I posted a couple of hours ago. Has the same statistical output but now outputs predictions and confidence intervals (Bayesianwise, right). I suppose these latter values&amp;nbsp;can be&amp;nbsp;used to get odds now, but would it be correct to do, say p / 1-p for the predictions and intervals? Thank you for the help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ODS GRAPHICS ON;										 
PROC GAMPL DATA=pharm_vanc_2 plots SEED=12345;;
	WHERE 	trough_10 GE 0 and 
			trough_10 &amp;lt; 3 and 
			PMA GE 1 and 
			PMA LE 3;
	CLASS 	PMA  (REF='3') /*oldest*/
			initial_dose_kg (REF='1')	/ PARAM=REF;
	MODEL trough_10 (EVENT='1')= 		param(PMA)
						param(Initial_dose_kg)
						spline(zSCr)
							/dist=binary
							LINK=logit
							SCALE=mle;
	ID 	trough_10
		PMA 
		Initial_dose_kg
		ZSCr;
	OUTPUT OUT=scoredata 	predicted
				STD
				UPPER
				LOWER;
RUN;
ODS GRAPHICS OFF;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Feb 2019 21:02:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GAMPL-logistic-spline-estimates/m-p/532288#M26835</guid>
      <dc:creator>H</dc:creator>
      <dc:date>2019-02-02T21:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GAMPL (logistic) spline estimates</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GAMPL-logistic-spline-estimates/m-p/533050#M26857</link>
      <description>&lt;P&gt;I'm sorry, but I don't understand what question you are asking.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest you look at &lt;A href="https://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetVersion=15.1&amp;amp;docsetTarget=statug_hpgam_examples02.htm&amp;amp;locale=en" target="_self"&gt;the documentation &lt;/A&gt;example if you haven't already.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you trying to evaluate the model at particular values of the explanatory variables and get estimates of the probability&amp;nbsp;of Event='1' along with confidence intervals? If so, append the scoring observations to the end of the data set and &lt;A href="https://blogs.sas.com/content/iml/2014/02/17/the-missing-value-trick-for-scoring-a-regression-model.html" target="_self"&gt;use the missing value trick&lt;/A&gt; to obtain the predicted values and CIs in the output data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To answer some of your earlier questions:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;EM&gt;&amp;gt; &lt;STRONG&gt;are the y-axis values log odds&lt;/STRONG&gt;?&lt;/EM&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;No. I&amp;nbsp;believe that the graph shows how the zSCr&amp;nbsp;variable should be transformed to&amp;nbsp;best predict the data. (See the doc examples.) The DF=2.2 says that the transformation is approximately quadratic and not quite cubic. If you wanted to use a parametric model, you could try to fit a cubic transformation of that variable. The wide confidence bands indicate that you shouldn't be very confident that the effect is quadratic/cubic.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;gt; If so, can I output these values with their CI values&amp;nbsp;somehow and calculate their odds via exponentiating?&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;They are not log odds.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 20:05:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GAMPL-logistic-spline-estimates/m-p/533050#M26857</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-02-05T20:05:03Z</dc:date>
    </item>
  </channel>
</rss>

