<?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 Logistic &amp;amp; Confidence Intervals...Contrast vs Estimate?? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-amp-Confidence-Intervals-Contrast-vs-Estimate/m-p/233274#M12295</link>
    <description>&lt;P&gt;Hi-&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the response! I currently have the spline term already constructed and in the model, and can find the confidence interval for that term alone, but need the combined confidence interval.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I should add is that I can currently use the outest= covout option and then use the variance and covariance values to calculate the standard error and then use that to calculate the upper and lower confidence limits...but it's extremely clunky and I imagine SAS has a better way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, I was not aware that you could code values using the comma to indicate an 'other' value. That's way simpler than writing if then/ else statements. Many thanks for the new info!!&lt;/P&gt;</description>
    <pubDate>Thu, 05 Nov 2015 17:12:36 GMT</pubDate>
    <dc:creator>ECO918</dc:creator>
    <dc:date>2015-11-05T17:12:36Z</dc:date>
    <item>
      <title>Proc Logistic &amp; Confidence Intervals....Contrast vs Estimate??</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-amp-Confidence-Intervals-Contrast-vs-Estimate/m-p/232926#M12273</link>
      <description>&lt;P&gt;Hello-&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a fairly basic logisitic regression model looking at the effect of time on bacterial growth. This model also includes a simple spline term, where the spline term begins at time= 10, and for all values after time=10 the spline= (time - 10).&lt;/P&gt;
&lt;P&gt;What I want is the slope after time= 10, which &lt;FONT face="Calibri"&gt;&lt;FONT color="#000000" size="3"&gt;=exp(β&lt;/FONT&gt;&lt;SUB&gt;&lt;FONT color="#000000" size="2"&gt;1&lt;/FONT&gt;&lt;/SUB&gt;&lt;FONT color="#000000" size="3"&gt;+ β&lt;/FONT&gt;&lt;SUB&gt;&lt;FONT color="#000000" size="2"&gt;2&lt;/FONT&gt;&lt;/SUB&gt;&lt;FONT color="#000000" size="3"&gt;). &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Calibri"&gt;&lt;FONT color="#000000" size="3"&gt;How do I get a confidence interval for this particular slope. I do not want to compare the slope from time &amp;lt; 10, I only want the confidence interval for exp(β&lt;SUB&gt;&lt;FONT color="#000000" size="2"&gt;1&lt;/FONT&gt;&lt;/SUB&gt;+ β&lt;SUB&gt;&lt;FONT color="#000000" size="2"&gt;2&lt;/FONT&gt;&lt;/SUB&gt;). Am I wrong that the contrast and estimate statements will provide me with odds ratio values, as opposed to just the isolated slope of the combined terms??&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Calibri"&gt;&lt;FONT color="#000000" size="3"&gt;For what it's worth, here's the basic model in SAS:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;logistic&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&amp;nbsp;growth_data &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;descending&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;model&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; growth=&amp;nbsp;time spline&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;run&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Calibri"&gt;&lt;FONT color="#000000" size="3"&gt;Log(odds)= β&lt;/FONT&gt;&lt;SUB&gt;&lt;FONT color="#000000" size="2"&gt;0&lt;/FONT&gt;&lt;/SUB&gt;&lt;FONT color="#000000" size="3"&gt; + β&lt;/FONT&gt;&lt;SUB&gt;&lt;FONT color="#000000" size="2"&gt;1&lt;/FONT&gt;&lt;/SUB&gt;&lt;FONT color="#000000" size="3"&gt;(time) + β&lt;/FONT&gt;&lt;SUB&gt;&lt;FONT color="#000000" size="2"&gt;2&lt;/FONT&gt;&lt;/SUB&gt;&lt;FONT color="#000000" size="3"&gt;(spline term for time)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;As a visual, what I'm interested in is the slope and confidence interval for the blue section&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;IMG title="Picture1.png" alt="Picture1.png" src="https://communities.sas.com/t5/image/serverpage/image-id/711i55BC6A711F802D2D/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;FONT face="Calibri"&gt;&lt;FONT color="#000000" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in 0in 0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in 0in 0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in 0in 0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2015 17:10:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-amp-Confidence-Intervals-Contrast-vs-Estimate/m-p/232926#M12273</guid>
      <dc:creator>ECO918</dc:creator>
      <dc:date>2015-11-03T17:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Logistic &amp; Confidence Intervals....Contrast vs Estimate??</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-amp-Confidence-Intervals-Contrast-vs-Estimate/m-p/233185#M12291</link>
      <description>Make this variable&lt;BR /&gt;Spline=max(time-10,0);&lt;BR /&gt;and add it in the model statement.&lt;BR /&gt;&lt;BR /&gt;Estimate and confidence intervals then comes automatically.</description>
      <pubDate>Wed, 04 Nov 2015 23:00:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-amp-Confidence-Intervals-Contrast-vs-Estimate/m-p/233185#M12291</guid>
      <dc:creator>JacobSimonsen</dc:creator>
      <dc:date>2015-11-04T23:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Logistic &amp; Confidence Intervals...Contrast vs Estimate??</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-amp-Confidence-Intervals-Contrast-vs-Estimate/m-p/233274#M12295</link>
      <description>&lt;P&gt;Hi-&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the response! I currently have the spline term already constructed and in the model, and can find the confidence interval for that term alone, but need the combined confidence interval.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I should add is that I can currently use the outest= covout option and then use the variance and covariance values to calculate the standard error and then use that to calculate the upper and lower confidence limits...but it's extremely clunky and I imagine SAS has a better way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, I was not aware that you could code values using the comma to indicate an 'other' value. That's way simpler than writing if then/ else statements. Many thanks for the new info!!&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2015 17:12:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-amp-Confidence-Intervals-Contrast-vs-Estimate/m-p/233274#M12295</guid>
      <dc:creator>ECO918</dc:creator>
      <dc:date>2015-11-05T17:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Logistic &amp; Confidence Intervals...Contrast vs Estimate??</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-amp-Confidence-Intervals-Contrast-vs-Estimate/m-p/233352#M12296</link>
      <description>I was mayto to quick when I read your question. I just noted that you asked for the slope. The slope estimate comes automatically.&lt;BR /&gt;Maybe you can use this code to get confidence intervals around the line:&lt;BR /&gt;&lt;BR /&gt;data mydata;&lt;BR /&gt;do i=1 to 100000;&lt;BR /&gt;time=rand('uniform',0,20);&lt;BR /&gt;spline=max(time-10,0);&lt;BR /&gt;logodds=0.75-0.05*spline;&lt;BR /&gt;p=1/(1+exp(-logodds));&lt;BR /&gt;y=rand('bernoulli',p);&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;keep y spline;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;*you get automatically estimates of the slope (approximately -0.05);&lt;BR /&gt;proc logistic data=mydata desc;&lt;BR /&gt;model y=spline;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;*if you want the estimate at a specific value for time you can use estimate statement:;&lt;BR /&gt;proc logistic data=mydata desc;&lt;BR /&gt;model y=spline;&lt;BR /&gt;estimate 'value at time=15' intercept 1 spline 5/exp;&lt;BR /&gt;run;&lt;BR /&gt;*(its "spline 5" because 15-10=5);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;*its also possible to get the confidence intervals by use of the "store statement" and proc plm;&lt;BR /&gt;proc logistic data=mydata desc;&lt;BR /&gt;model y=spline;&lt;BR /&gt;store result;&lt;BR /&gt;run;&lt;BR /&gt;data spline;&lt;BR /&gt;do spline=0 to 10 by 0.1;&lt;BR /&gt;time=10+spline;&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;BR /&gt;proc plm restore=result;&lt;BR /&gt;score data=spline out=spline2 predicted=p lclm uclm lcl ucl;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Nov 2015 21:33:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-amp-Confidence-Intervals-Contrast-vs-Estimate/m-p/233352#M12296</guid>
      <dc:creator>JacobSimonsen</dc:creator>
      <dc:date>2015-11-05T21:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Logistic &amp; Confidence Intervals...Contrast vs Estimate??</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-amp-Confidence-Intervals-Contrast-vs-Estimate/m-p/235313#M12444</link>
      <description>&lt;P&gt;Thanks for the help! I wasn't familiar with proc plm, always great to learn something new!&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2015 17:19:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-amp-Confidence-Intervals-Contrast-vs-Estimate/m-p/235313#M12444</guid>
      <dc:creator>ECO918</dc:creator>
      <dc:date>2015-11-18T17:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Logistic &amp; Confidence Intervals...Contrast vs Estimate??</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-amp-Confidence-Intervals-Contrast-vs-Estimate/m-p/235323#M12445</link>
      <description>&lt;P&gt;PROC PLM is awesome. See the article &lt;A href="http://blogs.sas.com/content/iml/2014/02/19/scoring-a-regression-model-in-sas.html" target="_self"&gt;"Tecniques for scoring a regression model"&lt;/A&gt; for another example.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2015 17:59:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-amp-Confidence-Intervals-Contrast-vs-Estimate/m-p/235323#M12445</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2015-11-18T17:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Logistic &amp; Confidence Intervals...Contrast vs Estimate??</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-amp-Confidence-Intervals-Contrast-vs-Estimate/m-p/235327#M12447</link>
      <description>&lt;P&gt;Rick-&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the link. I've heavily relied on your blog posts for many,&amp;nbsp;many&amp;nbsp;of my SAS questions!&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2015 18:05:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-amp-Confidence-Intervals-Contrast-vs-Estimate/m-p/235327#M12447</guid>
      <dc:creator>ECO918</dc:creator>
      <dc:date>2015-11-18T18:05:07Z</dc:date>
    </item>
  </channel>
</rss>

