<?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: Difference and CI for probabilities in Logistic in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Difference-and-CI-for-probabilities-in-Logistic/m-p/142384#M7415</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well it turns out I tried to go this route about 3 weeks ago to no avail. I kept botching things up when I added the continuous variable. Perhaps it is that I am not adding it correctly. So for example, I realize the following code is off but it would be something like this (see below), but the continuous variable is being treated as a binary variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally I want to run this and find the differences between the probabilities plus confidence intervals given specified values for the continuous variable (e.g., 1, 5, 10, 15,...). Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;nlmixed&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;=test;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&amp;nbsp; p=&lt;/SPAN&gt;&lt;SPAN style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;/(&lt;/SPAN&gt;&lt;SPAN style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;+exp(-(Intercept + b1*x1 + b2*x2 = B3*x1*x2 + B4*x3)));&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: green; font-size: 10pt;"&gt;/*B4 Continuous/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;model&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; y ~ binomial(&lt;/SPAN&gt;&lt;SPAN style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;,p);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;estimate&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;"Prob Diff x1 = 1 and X2 = 1 or 0"&lt;/SPAN&gt; &lt;SPAN style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;/(&lt;/SPAN&gt;&lt;SPAN style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;+exp(-(Intercept+b1 + b2 +b3 + &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;b4*x4))) - &lt;/SPAN&gt;&lt;SPAN style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;/(&lt;/SPAN&gt;&lt;SPAN style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;+exp(-(Intercept + B1*X1 + B4)));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jun 2014 16:46:37 GMT</pubDate>
    <dc:creator>H</dc:creator>
    <dc:date>2014-06-20T16:46:37Z</dc:date>
    <item>
      <title>Difference and CI for probabilities in Logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Difference-and-CI-for-probabilities-in-Logistic/m-p/142374#M7405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am running a logistic regression model with two binary categorical variables, their multiplicative interaction term, and a continuous variable.&amp;nbsp; I am currently trying to get the differences in probabilities (along with respective confidence interval(CI)) for different combinations of independent variabls (e.g., for a strata) in an attempt to plot them with their CI. My goal is to generate graphs similar to those at the bottom of the following webpage:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.ats.ucla.edu/stat/stata/faq/logit2by2.htm"&gt;http://www.ats.ucla.edu/stat/stata/faq/logit2by2.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My data is very similar to those in the STATA example, or what I mean is I have an X1, X2, X1*X2, and X3 (continuous variable).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using contrast statements in my proc logistic, I can get the probabilities for select groupings of my variables based on selected level of the continuous variable (see attached). However, I want to get the differences (and respective CI) of these based on the level of one of the categorical variables. The difference is basic subtraction, but I don't know how to get the CIs for them. Seems like something that can be done in a contrast statement, but I can't seem to get my code right, since based on simple subtraction, I know what the difference should be. I have tried things like "contrast X1 1 X1*X2 1", which are terms not in both contrast statements, to no avail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your time and help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;logistic&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;=dataset;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X1 (&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;ref&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;'0'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X2 (&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;ref&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;'0'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;) / &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;param&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;=ref;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;model&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; y(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;event&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;'1'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;) = &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X1 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X2&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X1*X2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X3 &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: green; font-size: 10pt;"&gt;/*continuous*/&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; / &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;link&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; = logit &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;expb&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;clodds&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;=wald;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;contrast&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;'X1 = 0 X2 = 1'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; X2 &lt;/SPAN&gt;&lt;SPAN style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; X3 &lt;/SPAN&gt;&lt;SPAN style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;11.23&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; intercept &lt;/SPAN&gt;&lt;SPAN style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&amp;nbsp; /&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;estimate&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; = prob; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: green; font-size: 10pt;"&gt;/*11.23 mean of X3*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;contrast&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;'X1 = 1 X2 = 1'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; X1 &lt;/SPAN&gt;&lt;SPAN style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; X2 &lt;/SPAN&gt;&lt;SPAN style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; X3 &lt;/SPAN&gt;&lt;SPAN style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;11.23&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; intercept &lt;/SPAN&gt;&lt;SPAN style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; X1*X2 &lt;/SPAN&gt;&lt;SPAN style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; /&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;estimate&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; = prob;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;contrast&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;'X1 = 0 X2 = 0'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; X3 &lt;/SPAN&gt;&lt;SPAN style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;11.23&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; intercept &lt;/SPAN&gt;&lt;SPAN style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; /&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;estimate&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; = prob;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;contrast&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;'X1 = 1 X2 = 0'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; X1 &lt;/SPAN&gt;&lt;SPAN style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; X3 &lt;/SPAN&gt;&lt;SPAN style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;11.23&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; intercept &lt;/SPAN&gt;&lt;SPAN style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&amp;nbsp; /&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;estimate&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; = prob;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: green; font-size: 10pt;"&gt;/*Want difference of first and second contrast plus confidence interval*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: green; font-size: 10pt;"&gt;/*Want difference of third and fourth contrast plus confidence interval*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 16:38:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Difference-and-CI-for-probabilities-in-Logistic/m-p/142374#M7405</guid>
      <dc:creator>H</dc:creator>
      <dc:date>2014-06-13T16:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: Difference and CI for probabilities in Logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Difference-and-CI-for-probabilities-in-Logistic/m-p/142375#M7406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is that the standard error of the difference is on the logit scale.&amp;nbsp; You may wish to try the LSMESTIMATE statement to get the comparison of interest (available in SAS/STAT12.3 and above).&amp;nbsp; I won't guarantee that the standard error is quite right. Also, beware of using the ILINK option in this statement.&amp;nbsp; However, if you get the CL estimates out, you could thne transform back to the probability scale.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2014 12:42:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Difference-and-CI-for-probabilities-in-Logistic/m-p/142375#M7406</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-06-16T12:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Difference and CI for probabilities in Logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Difference-and-CI-for-probabilities-in-Logistic/m-p/142376#M7407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Steve Denham,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I feel like I can get close to the results I am looking for but not quite there. The following gets me the individual probabilites needed for the subtraction:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lsmeans X1*X2 / at X3 = 11.23 ilink; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I add "diff" as an option it calculates the differences, though these are differences in the beta coefficients, which when exponentiated and divided by 1 + them exponentiated, do not equal the same thing as differences in transformed values (probabilities) I am after (along with confidence intervals).&amp;nbsp; Any suggestions would be appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S., I could always pull out the probabilities and SE needed for the subtraction and perform the procedure in a data step, however - I do not know how to get the confidence intervals for this calculated difference based only on the probabilities and their respective SE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 16:54:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Difference-and-CI-for-probabilities-in-Logistic/m-p/142376#M7407</guid>
      <dc:creator>H</dc:creator>
      <dc:date>2014-06-18T16:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: Difference and CI for probabilities in Logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Difference-and-CI-for-probabilities-in-Logistic/m-p/142377#M7408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Additional option,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I just have the probabilities and SEs and want to find the difference between two of these probabilities with its confidence interval - is it just possible to do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~ find the differences&lt;/P&gt;&lt;P&gt;~ square the individual SEs, then add them together and find the square root for the difference SE&lt;/P&gt;&lt;P&gt;~ calculate confindence intervals via difference +/- (SE * 1.96)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 17:25:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Difference-and-CI-for-probabilities-in-Logistic/m-p/142377#M7408</guid>
      <dc:creator>H</dc:creator>
      <dc:date>2014-06-18T17:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: Difference and CI for probabilities in Logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Difference-and-CI-for-probabilities-in-Logistic/m-p/142378#M7409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got excited at first about plugging in a t value for the CI, rather than the z value, but I gathered my wits before I hit "Add Reply".&amp;nbsp; Since this is for a proportion, and is an approximation in any case, you are probably good.&amp;nbsp; It does assume that the estimates are independent.&amp;nbsp; If you really wanted to get picky, you could get the covariance matrix out of LOGISTIC and apply that when calculating the pooled SE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 18:55:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Difference-and-CI-for-probabilities-in-Logistic/m-p/142378#M7409</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-06-18T18:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Difference and CI for probabilities in Logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Difference-and-CI-for-probabilities-in-Logistic/m-p/142379#M7410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well I am on a stats forum, so lets please hear about the picky method. I had the code output the cov, which seems fairly splotchy with values just for the reference values of X1, X2, X1*X2, and for X3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 20:27:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Difference-and-CI-for-probabilities-in-Logistic/m-p/142379#M7410</guid>
      <dc:creator>H</dc:creator>
      <dc:date>2014-06-18T20:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Difference and CI for probabilities in Logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Difference-and-CI-for-probabilities-in-Logistic/m-p/142380#M7411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, the asymptotic variance of a difference between non-independent variables A and B is var(diff) = var(A) + var (B) + 2*cov(A,B).&amp;nbsp; So, it is just a matter of plugging in the covariance term after you sum the squared SE's, and before taking the square root.&amp;nbsp; If values are missing from cov, then you might be dealing with an atypical dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And of course, you could do all of this in matrix form.&amp;nbsp; Search &lt;A __default_attr="129106" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;'s blog The DO Loop for an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2014 14:01:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Difference-and-CI-for-probabilities-in-Logistic/m-p/142380#M7411</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-06-19T14:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: Difference and CI for probabilities in Logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Difference-and-CI-for-probabilities-in-Logistic/m-p/142381#M7412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would try to do this by using PROC NLMIXED. Here is a good reference which shows how to do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://support.sas.com/kb/37/228.html" title="http://support.sas.com/kb/37/228.html"&gt;37228 - Estimating differences in probabilities with confidence interval&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Funda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2014 18:09:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Difference-and-CI-for-probabilities-in-Logistic/m-p/142381#M7412</guid>
      <dc:creator>Funda_SAS</dc:creator>
      <dc:date>2014-06-19T18:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Difference and CI for probabilities in Logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Difference-and-CI-for-probabilities-in-Logistic/m-p/142382#M7413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is cool, and definitely qualifies as A. a better approach, and B. picky, so it certainly meets all of the qualifications.&amp;nbsp; Thanks, &lt;A __default_attr="3477" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="mailto:Funda@SAS"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 13:53:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Difference-and-CI-for-probabilities-in-Logistic/m-p/142382#M7413</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-06-20T13:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: Difference and CI for probabilities in Logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Difference-and-CI-for-probabilities-in-Logistic/m-p/142383#M7414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I am excited to try this approach (which is oddly enough is similar to another piece of code I have further down in my program). I am caught up in doing something else right now, so I will update this thread if I end up having difficulties or with the final code used once I run it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again every one - this is the third question I have posted on this forum, with great responses everytime!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S., Unsure why I did not find that SAS document during my searches &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 14:03:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Difference-and-CI-for-probabilities-in-Logistic/m-p/142383#M7414</guid>
      <dc:creator>H</dc:creator>
      <dc:date>2014-06-20T14:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: Difference and CI for probabilities in Logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Difference-and-CI-for-probabilities-in-Logistic/m-p/142384#M7415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well it turns out I tried to go this route about 3 weeks ago to no avail. I kept botching things up when I added the continuous variable. Perhaps it is that I am not adding it correctly. So for example, I realize the following code is off but it would be something like this (see below), but the continuous variable is being treated as a binary variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally I want to run this and find the differences between the probabilities plus confidence intervals given specified values for the continuous variable (e.g., 1, 5, 10, 15,...). Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;nlmixed&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;=test;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&amp;nbsp; p=&lt;/SPAN&gt;&lt;SPAN style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;/(&lt;/SPAN&gt;&lt;SPAN style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;+exp(-(Intercept + b1*x1 + b2*x2 = B3*x1*x2 + B4*x3)));&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: green; font-size: 10pt;"&gt;/*B4 Continuous/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;model&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; y ~ binomial(&lt;/SPAN&gt;&lt;SPAN style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;,p);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;estimate&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;"Prob Diff x1 = 1 and X2 = 1 or 0"&lt;/SPAN&gt; &lt;SPAN style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;/(&lt;/SPAN&gt;&lt;SPAN style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;+exp(-(Intercept+b1 + b2 +b3 + &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;b4*x4))) - &lt;/SPAN&gt;&lt;SPAN style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;/(&lt;/SPAN&gt;&lt;SPAN style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;+exp(-(Intercept + B1*X1 + B4)));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 16:46:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Difference-and-CI-for-probabilities-in-Logistic/m-p/142384#M7415</guid>
      <dc:creator>H</dc:creator>
      <dc:date>2014-06-20T16:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Difference and CI for probabilities in Logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Difference-and-CI-for-probabilities-in-Logistic/m-p/142385#M7416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First, check to see if you correctly estimate for x1=1 and x2=1.&amp;nbsp; Because of the continuous nature of x3, you will need to feed in a value.&amp;nbsp; Say the mean value of x3 is 12.&amp;nbsp; Then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;estimate 'Prob for x1=1, x2=1, x3=12' 1/(1+exp(-(intercept + b1*1 + b2*1 + b3*1 +b4*12)));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do similar estimates for the other probabilities to make sure you are getting what you believe you should be getting, and THEN create an ESTIMATE statement that combines/takes the difference of two that are correctly estimated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 18:00:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Difference-and-CI-for-probabilities-in-Logistic/m-p/142385#M7416</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-06-20T18:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Difference and CI for probabilities in Logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Difference-and-CI-for-probabilities-in-Logistic/m-p/142386#M7417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It runs fine until I add the continuous variable, then halts and the output stops prior to the "Interation History" with the following log message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;NOTE: To assign starting values to parameters, use the PARMS statement. The default starting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;value of 1.0 is in effect for all parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: No valid parameter points were found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE NLMIXED used (Total process time):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;real time 0.14 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cpu time 0.06 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the output:&lt;/P&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 10pt;"&gt;The NLMIXED Procedure&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" style="border: #c1c1c1 1pt solid; padding: 3pt;" summary="Procedure Nlmixed: Parameter Estimates"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="padding: 3pt;" valign="top"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;Data Set&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 3pt;" valign="top"&gt;&lt;OL style="list-style-type: upper-alpha;"&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;WORK.TEST&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 3pt;" valign="top"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;Dependent Variable&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 3pt;" valign="top"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;y&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 3pt;" valign="top"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;Distribution for Dependent Variable&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 3pt;" valign="top"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;Binomial&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 3pt;" valign="top"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;Optimization Technique&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 3pt;" valign="top"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;Dual Quasi-Newton&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 3pt;" valign="top"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;Integration Method&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 3pt;" valign="top"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;None&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" style="border: #c1c1c1 1pt solid; padding: 3pt;" summary="Procedure Nlmixed: Parameter Estimates"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="padding: 3pt;" valign="top"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;Observations Used&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 3pt;" valign="top"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;319&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 3pt;" valign="top"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;Observations Not Used&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 3pt;" valign="top"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 3pt;" valign="top"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;Total Observations&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 3pt;" valign="top"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;319&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 3pt;" valign="top"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;Parameters&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 3pt;" valign="top"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;5&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" style="border: #c1c1c1 1pt solid; padding: 3pt;" summary="Procedure Nlmixed: Parameter Estimates"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="padding: 3pt;" valign="top"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 3pt;" valign="top"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 3pt;" valign="top"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 3pt;" valign="top"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 3pt;" valign="top"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 3pt;" valign="top"&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;1.15792E77&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had originally attempt to use this approach via:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.columbia.edu/~mmw2177/Testing%20for%20additive%20interactions%2029Feb2012.pdf"&gt;http://www.columbia.edu/~mmw2177/Testing%20for%20additive%20interactions%2029Feb2012.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, any help is appreciated.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Once again, my original question was how to find the difference between two probabilities and the respective confidence interval for different levels of a continuous covariate only given the two probabilities their SE, which can be calculated for the continuous covariate levels. However, I am will to explore all options for the a solution. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 19:09:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Difference-and-CI-for-probabilities-in-Logistic/m-p/142386#M7417</guid>
      <dc:creator>H</dc:creator>
      <dc:date>2014-06-20T19:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: Difference and CI for probabilities in Logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Difference-and-CI-for-probabilities-in-Logistic/m-p/142387#M7418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Scale and center your continous variable, so that the values will not "blow up" when exponentiated.&amp;nbsp; Also, the PARMS statement can be used to grid search for good starting values.&amp;nbsp; I don't know hwat scale the continuous variable is on, but if it is recentered and rescaled so that values run from, say, -5 to +5, you should not need the PARMS approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to keep the original scaling, and x3 ranges from 1 to 100, for example, then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parms b4 0.01 to 0.2 by 0.1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;might be a place to start.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 19:16:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Difference-and-CI-for-probabilities-in-Logistic/m-p/142387#M7418</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-06-20T19:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Difference and CI for probabilities in Logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Difference-and-CI-for-probabilities-in-Logistic/m-p/142388#M7419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you get it working?&amp;nbsp; I rarely get NLMIXED programs to work the first time...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you haven't gotten it working yet:&amp;nbsp; you have an "=" in the equation for "p" that does not belong there:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: courier new,courier;"&gt;p=&lt;SPAN style="background: white; color: teal; font-size: 10pt;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-size: 10pt;"&gt;/(&lt;/SPAN&gt;&lt;SPAN style="background: white; color: teal; font-size: 10pt;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-size: 10pt;"&gt;+exp(-(Intercept + b1*x1 + b2*x2&amp;nbsp;&amp;nbsp;&amp;nbsp; +&amp;nbsp;&amp;nbsp;&amp;nbsp; B3*x1*x2 + B4*x3)));&lt;/SPAN&gt;&lt;SPAN style="background: white; color: green; font-size: 10pt;"&gt;/*B4 Continuous/&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;For logistic programs, I've found small intercepts and zero slopes give decent starting values:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: courier new,courier;"&gt;parms8 b1=0 b2=0 b3=0 b4=0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;but if that doesn't work, setting up a grid as Steve suggested (away from 1) should help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And here's my version of your data + a program that actually converges (but I'm not gonna claim it's correct &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;):&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;data one;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; do i=1 to 1000;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; a=round(ranuni(0));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; b=round(ranuni(0));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; x=11.23+rannor(0);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lp= 0.1 + 0.2*a + 0.3*b + 0.4*a*b + 0.005*x;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; p=exp(lp)/(1+exp(lp));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; y= (ranuni(0)&amp;lt;p);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; output;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; end;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;proc logistic data=one;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; class a b / param=ref ref=first;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; model y(event='1')= a b a*b x / link = logit itprint;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;run;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;* NLMIXED and LOGISTIC parameter estimates match ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;proc nlmixed data=one gconv=0 fconv=0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; parms int=1e-8 ba=0 bb=0 bab=0 bx=0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; elp=exp(int+ba*a+bb*b+bab*a*b+bx*x);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; model y ~ binary(elp/(1+elp));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; xfixed=11.23;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; ea0b0=exp(-(int&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; +bx*xfixed));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; ea1b1=exp(-(int+ba+bb+bab+bx*xfixed));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; p1=ea0b0/(1+ea0b0);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; p4=ea1b1/(1+ea1b1);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; estimate 'p1' p1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; estimate 'p4' p4;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; estimate 'p1-p4' p1-p4;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 17:45:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Difference-and-CI-for-probabilities-in-Logistic/m-p/142388#M7419</guid>
      <dc:creator>bobderr</dc:creator>
      <dc:date>2014-06-25T17:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: Difference and CI for probabilities in Logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Difference-and-CI-for-probabilities-in-Logistic/m-p/142389#M7420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See this note that addresses the issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://support.sas.com/kb/37228"&gt;http://support.sas.com/kb/37228&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 16:24:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Difference-and-CI-for-probabilities-in-Logistic/m-p/142389#M7420</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2014-07-03T16:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: Difference and CI for probabilities in Logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Difference-and-CI-for-probabilities-in-Logistic/m-p/142390#M7421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just got back from a conference, so I have not had a chance to work on this until this afternoon. I centered the continuous variabe using proc sql and the proc nlmixed then ran.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Per Denham's suggestion, I first requested the model estimates in proc nlmixed (which were exactly the same as the proc logistic).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been working on writing the estimates. The continous variable mean was 11, so I place B4*-10 through 30 to get estimates for continuous variable 1-40, however between B4*0 and the B4*1 estimate there seem to be a bigger gap in intergers than between all of the other estimates. Not sure on a way to address that. I will keep working and updating this thread. Thank you all for your help so far.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My next attempts will be to do a ods trace and try to pull these values out to eventually plot. Also, does anyone know how to insert a range or perhaps macro for the integers multiplied to the B4 term.&amp;nbsp; Writing B4*-10, B4*-9,...,B4*30 for two groupings of estimates takes up quite a bit of line space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lastly, StatDave - thanks, Funda had referenced that SAS document in a prior post on this thread. Was there a particular line you were referencing that may help?&amp;nbsp; Also Bobderr, thanks for all of that scaling code, I ended up centering, which seemed to work - lucky for me, since I was getting a little lost in your code..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 20:45:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Difference-and-CI-for-probabilities-in-Logistic/m-p/142390#M7421</guid>
      <dc:creator>H</dc:creator>
      <dc:date>2014-07-03T20:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Difference and CI for probabilities in Logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Difference-and-CI-for-probabilities-in-Logistic/m-p/142391#M7422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The first part of Note 37228 ("Binary Response - Using PROC NLMIXED") shows how it is done using PROC NLMIXED.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2014 15:07:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Difference-and-CI-for-probabilities-in-Logistic/m-p/142391#M7422</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2014-07-07T15:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Difference and CI for probabilities in Logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Difference-and-CI-for-probabilities-in-Logistic/m-p/142392#M7423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, yes that is the approach I took and I finally got the graph I wanted out of it. Thanks to everyone here. I also had tried the proc genmod approach awhile back. I kept getting very close to a solution, but you all helped me get there and confirm my methods. Once I have some free time I will update this thread giving an overview of what I did. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again - you all have been very helpful!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S., The discrepancy I referenced in my prior post on the values jumpping up quite a bit was just a mis-type in my coding that I was able to clean up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2014 20:31:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Difference-and-CI-for-probabilities-in-Logistic/m-p/142392#M7423</guid>
      <dc:creator>H</dc:creator>
      <dc:date>2014-07-07T20:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Difference and CI for probabilities in Logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Difference-and-CI-for-probabilities-in-Logistic/m-p/142393#M7424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Re: Usage Note 37228: Estimating differences in probabilities with confidence interval&lt;/P&gt;&lt;P&gt;I do not understand why SAS shows the way how to get the difference in probabilities with confidence intervals using NLMIXED&amp;nbsp; and at the same time you say for proc logistic with ilink: Adding the DIFF option in the LSMEANS statement would estimate the differences in log odds (equivalently, the log odds ratios), &lt;STRONG&gt;not the differences in the probabilities.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I.e. what is the problem to have this differences in probabilities with CIs calculated by proc logistic with ilink diff options?&lt;/P&gt;&lt;P&gt;Please clarify,&lt;/P&gt;&lt;P&gt;Zbig&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 16:25:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Difference-and-CI-for-probabilities-in-Logistic/m-p/142393#M7424</guid>
      <dc:creator>zk117</dc:creator>
      <dc:date>2015-04-08T16:25:50Z</dc:date>
    </item>
  </channel>
</rss>

