<?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 regression in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/regression/m-p/600639#M29221</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am carrying on a project that is about to have predicted probability and would like to ask you several questions.&lt;/P&gt;&lt;P&gt;1. To see whether there is relationship between age and health outcome, I did logistic with spline effect as followed then have sgplot.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC LOGISTIC DATA=HI PLOTS=NONE;

&amp;nbsp; EFFECT SPL= SPLINE(AGE95/DETAILS NATURALCUBIC BASIS=TPF(NOINT) KNOTMETHOD=PERCENTILES(5) );

&amp;nbsp; MODEL HEALTH (EVENT=‘1’)= SPL;

&amp;nbsp; OUTPUT OUT=SPLINE_HEALTH PREDICTED =PREDPROB; QUIT;

PROC SGPLOT DATA= OUT=SPLINE_HEALTH NOAUTOLEGEND;

&amp;nbsp; SCATTER SCATTER X=AGE95 Y=HEALTH(EVENT=‘1’) / JITTER

&amp;nbsp; SERIES SCATTER X=AGE95 Y=PREDPROB;

&amp;nbsp; &amp;nbsp;YAXIS MIN=0 MAX=1 GRID LABEL=“PREDICTED PROBABILITY”; RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Then I also want to have CI on the graph using band statement but it does not give me what I wanted for (e. g. attach 1 from&amp;nbsp;SAS/STAT® 14.1 User’s Guide The GAMPL Procedure p. 2918). Can you recommend what I need do for CI on a graph?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. The other method I am doing is non-parametic with proc adaptivereg&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC ADAPTIVEREG DATA=HI_2;
	MODEL HEALTH (EVENT=‘1’)=AGE95;
	OUTPUT OUT METABOLIC P(ILINK); RUN; 

PROC SGPLOT DATA=METABOLIC NOAUTOLEGEND;
	SCATTER X=AGE95 Y=HEALTH / JITTER;
	SERIES X=AGE95 Y=PRED;
	YAXIS MIN=0 MAX=1 GRID LABEL=“PREDICTED PROBABILITY”; RUN; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Here, again I would like to have CI on the graph but it has been challenging.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it because Ci cannot be calculated or is it me not to have CI?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know how to deal with this issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks in advance!&lt;/P&gt;</description>
    <pubDate>Thu, 31 Oct 2019 08:46:55 GMT</pubDate>
    <dc:creator>Daniellekeem</dc:creator>
    <dc:date>2019-10-31T08:46:55Z</dc:date>
    <item>
      <title>regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/regression/m-p/600639#M29221</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am carrying on a project that is about to have predicted probability and would like to ask you several questions.&lt;/P&gt;&lt;P&gt;1. To see whether there is relationship between age and health outcome, I did logistic with spline effect as followed then have sgplot.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC LOGISTIC DATA=HI PLOTS=NONE;

&amp;nbsp; EFFECT SPL= SPLINE(AGE95/DETAILS NATURALCUBIC BASIS=TPF(NOINT) KNOTMETHOD=PERCENTILES(5) );

&amp;nbsp; MODEL HEALTH (EVENT=‘1’)= SPL;

&amp;nbsp; OUTPUT OUT=SPLINE_HEALTH PREDICTED =PREDPROB; QUIT;

PROC SGPLOT DATA= OUT=SPLINE_HEALTH NOAUTOLEGEND;

&amp;nbsp; SCATTER SCATTER X=AGE95 Y=HEALTH(EVENT=‘1’) / JITTER

&amp;nbsp; SERIES SCATTER X=AGE95 Y=PREDPROB;

&amp;nbsp; &amp;nbsp;YAXIS MIN=0 MAX=1 GRID LABEL=“PREDICTED PROBABILITY”; RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Then I also want to have CI on the graph using band statement but it does not give me what I wanted for (e. g. attach 1 from&amp;nbsp;SAS/STAT® 14.1 User’s Guide The GAMPL Procedure p. 2918). Can you recommend what I need do for CI on a graph?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. The other method I am doing is non-parametic with proc adaptivereg&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC ADAPTIVEREG DATA=HI_2;
	MODEL HEALTH (EVENT=‘1’)=AGE95;
	OUTPUT OUT METABOLIC P(ILINK); RUN; 

PROC SGPLOT DATA=METABOLIC NOAUTOLEGEND;
	SCATTER X=AGE95 Y=HEALTH / JITTER;
	SERIES X=AGE95 Y=PRED;
	YAXIS MIN=0 MAX=1 GRID LABEL=“PREDICTED PROBABILITY”; RUN; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Here, again I would like to have CI on the graph but it has been challenging.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it because Ci cannot be calculated or is it me not to have CI?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know how to deal with this issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 08:46:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/regression/m-p/600639#M29221</guid>
      <dc:creator>Daniellekeem</dc:creator>
      <dc:date>2019-10-31T08:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/regression/m-p/600659#M29222</link>
      <description>&lt;P&gt;ODS Graphics from PROC LOGISTIC produces a fitted plot with confidence intervals of the predicted values, but this does not contain a scatterplot of the raw data. The specific graph you want is the EFFECTPLOT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See the plot all the way at the bottom at &lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_logistic_examples07.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en#statug.logistic.logx7d" target="_blank"&gt;https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_logistic_examples07.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en#statug.logistic.logx7d&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 10:51:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/regression/m-p/600659#M29222</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-10-31T10:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/regression/m-p/600718#M29223</link>
      <description>&lt;P&gt;For an example of using the EFFECTPLOT statement and PROC LOGISTIC to create a fit plot with CLs, see the section "A logistic model with a continuous-continuous interaction" in the article &lt;A href="https://blogs.sas.com/content/iml/2016/06/22/sas-effectplot-statement.html" target="_self"&gt;"Use the EFFECTPLOT statement to visualize regression models in SAS"&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The example shows a panel of plots, but if you omit the PLOTBY= option, you will get a single plot.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 14:54:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/regression/m-p/600718#M29223</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-10-31T14:54:36Z</dc:date>
    </item>
  </channel>
</rss>

