<?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 genmod Estimate statement help in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-Estimate-statement-help/m-p/665670#M31719</link>
    <description>&lt;P&gt;An estimate is linear combination of the means of levels. If you want to know the difference between two levels, you multiple one level by +1 and one level by -1 and then add.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In pseudo math, you want&lt;/P&gt;
&lt;P&gt;+1 * (mean of level A) + -1 * (mean of level B)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In general, you would not use an ESTIMATE statement for the difference of two means. You would not use an ESTIMATE statement when the coefficients are -1 or +1. These means are easily compared by the LSMEANS statement. Make your life easier and use the LSMEANS statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You would use an estimate statement when you want coefficients that are not all +1 or -1, such as&lt;/P&gt;
&lt;P&gt;0.5 * (mean of level A) + 0.5 * (mean of level B) + -1 * (mean of level C)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jun 2020 00:08:05 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2020-06-29T00:08:05Z</dc:date>
    <item>
      <title>proc genmod Estimate statement help</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-Estimate-statement-help/m-p/665666#M31718</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a negative binomial model using generalized estimating equations in order to estimate volume of a surgical procedure. I have been trying to write estimate functions for specific effects but am a bit confused regarding the correct parameter specifications. In the model below, "exposure" and "period" are binary (1/0) variables reflecting policy exposure and treatment period. "confounder1" is a continuous confounder variable and volume is a continuous/count variable for outcome. "hospst" refers to state, which is where the observations are clustered. The basic formula is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;genmod&lt;/STRONG&gt; &lt;SPAN class="s2"&gt;data&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;=have;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s2"&gt;class&lt;/SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;exposure (&lt;SPAN class="s2"&gt;ref&lt;/SPAN&gt;=&lt;SPAN class="s3"&gt;'0'&lt;/SPAN&gt;) period (&lt;SPAN class="s2"&gt;ref&lt;/SPAN&gt;=&lt;SPAN class="s3"&gt;'0'&lt;/SPAN&gt;)&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;hospst/;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s2"&gt;model&lt;/SPAN&gt; volume= confounder1 exposure period exposure*period/ &lt;SPAN class="s2"&gt;dist&lt;/SPAN&gt;=negbin;&lt;/P&gt;&lt;P class="p3"&gt;repeated subject&lt;SPAN class="s1"&gt;= hospst/&lt;/SPAN&gt;type&lt;SPAN class="s1"&gt;=ind;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;estimate&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;'period'&lt;/SPAN&gt; period &lt;SPAN class="s3"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; -&lt;SPAN class="s3"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;/&lt;SPAN class="s1"&gt;exp&lt;/SPAN&gt;;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;estimate&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;'exposure'&lt;/SPAN&gt; exposure &lt;SPAN class="s3"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; -&lt;SPAN class="s3"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;/&lt;SPAN class="s1"&gt;exp&lt;/SPAN&gt;;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;estimate&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;'interaction'&lt;/SPAN&gt; period*exposure &lt;SPAN class="s3"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; -&lt;SPAN class="s3"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; -&lt;SPAN class="s3"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s3"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;/&lt;SPAN class="s1"&gt;exp&lt;/SPAN&gt;;&lt;/P&gt;&lt;P class="p1"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN class="s1"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Based on the variable specifications and parameter information in the output (attached), I would have thought that the parameters should be specified as 0 and 1. Through trial and error, it seems that it is actually specified as 1/-1. Why is that?&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Also, some articles online (e.g.&amp;nbsp;&lt;A href="https://support.sas.com/kb/24/447.html" target="_blank"&gt;https://support.sas.com/kb/24/447.html&lt;/A&gt;) describe estimating interaction terms by specifying the constituent term parameters and the intercept as part of the same estimate statement (along with the interaction parameters). That seemed to give me an error, so I just multiplied the (1, -1) parameters for the two terms. Does anyone if additional specification of other terms is needed? Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jun 2020 22:29:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-Estimate-statement-help/m-p/665666#M31718</guid>
      <dc:creator>jgreenberg321</dc:creator>
      <dc:date>2020-06-28T22:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: proc genmod Estimate statement help</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-Estimate-statement-help/m-p/665670#M31719</link>
      <description>&lt;P&gt;An estimate is linear combination of the means of levels. If you want to know the difference between two levels, you multiple one level by +1 and one level by -1 and then add.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In pseudo math, you want&lt;/P&gt;
&lt;P&gt;+1 * (mean of level A) + -1 * (mean of level B)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In general, you would not use an ESTIMATE statement for the difference of two means. You would not use an ESTIMATE statement when the coefficients are -1 or +1. These means are easily compared by the LSMEANS statement. Make your life easier and use the LSMEANS statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You would use an estimate statement when you want coefficients that are not all +1 or -1, such as&lt;/P&gt;
&lt;P&gt;0.5 * (mean of level A) + 0.5 * (mean of level B) + -1 * (mean of level C)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2020 00:08:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-Estimate-statement-help/m-p/665670#M31719</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-06-29T00:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: proc genmod Estimate statement help</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-Estimate-statement-help/m-p/665672#M31720</link>
      <description>Thank you very much for the reply. I think I’m this instance, the main rationale for the Estimate statement was to exponentiate the model coefficients, though I can also do that by hand. LSMeans would not help me with that, right?&lt;BR /&gt;&lt;BR /&gt;More generally, if my categorical variables had &amp;gt;= 3 levels, then I assume I would need the estimate statement to specify custom between-group comparisons?&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;BR /&gt;Jacob&lt;BR /&gt;</description>
      <pubDate>Mon, 29 Jun 2020 00:35:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-Estimate-statement-help/m-p/665672#M31720</guid>
      <dc:creator>jgreenberg321</dc:creator>
      <dc:date>2020-06-29T00:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: proc genmod Estimate statement help</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-Estimate-statement-help/m-p/665746#M31725</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you very much for the reply. I think I’m this instance, the main rationale for the Estimate statement was to exponentiate the model coefficients, though I can also do that by hand. LSMeans would not help me with that, right?&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;You can use the EXP option in the LSMEANS statement in PROC GENMOD.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;if my categorical variables had &amp;gt;= 3 levels, then I assume I would need the estimate statement to specify custom between-group comparisons?&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;It depends. If you want to compare level 2 to level 6, LSMEANS will do that for you. If you want to compare the least squares means of levels 2 and 3 combined to the means of levels 4, 5 and 6 combined, then this is a perfect situation for the LSMESTIMATE statement (not the ESTIMATE statement).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2020 11:04:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-Estimate-statement-help/m-p/665746#M31725</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-06-29T11:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: proc genmod Estimate statement help</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-Estimate-statement-help/m-p/665793#M31730</link>
      <description>&lt;P&gt;Thank you. I think LSEstimate is in fact what I need. I have been trying to build up toward tackling the more complicated analyses. The more complicated problem I am trying to address is a triple interaction. The model setup is essentially the same. Here the outcome is medicaid insurance status, and the model components are the same, except adding a triple interaction for non-white race to evaluate the triple interaction between non-white race (R), policy exposure (E), and post-expansion period (P). White is the reference category. Ignoring confounders, the basic regression equation for this should look like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;y = b(0) + b1*P + b2*E + b3*R + b4*E*P + b5*E*R + b6*P*R + b7*P*E*R.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Doing a bit of math, the effect of expansion on non-white races (R=1) compared to white races (R=0) should be: (b6 + b7). How can I use LSEstimate to calculate the mean of these these coefficients (b6 + b7) relative to the reference category of 0, and test whether this comparison is significant? In case is helpful, snapshots of the model output and specification are attached. Thank you very much!&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2020 14:05:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-Estimate-statement-help/m-p/665793#M31730</guid>
      <dc:creator>jgreenberg321</dc:creator>
      <dc:date>2020-06-29T14:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: proc genmod Estimate statement help</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-Estimate-statement-help/m-p/665931#M31738</link>
      <description>&lt;P&gt;To be more specific, I am looking to test the statistical significance of the following statement:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;'exposure:white + period:exposure:white = 0'&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2020 21:49:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-Estimate-statement-help/m-p/665931#M31738</guid>
      <dc:creator>jgreenberg321</dc:creator>
      <dc:date>2020-06-29T21:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: proc genmod Estimate statement help</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-Estimate-statement-help/m-p/666051#M31742</link>
      <description>&lt;P&gt;Let's take this in steps.&amp;nbsp; First, what does your code look like?&amp;nbsp; Second, what are the LSMeans for your categorical variables?&amp;nbsp; From the last, we can construct the comparisons of interest in an LSMESTIMATE statement.&amp;nbsp; The results will be on the log-odds scale.&amp;nbsp; Finally from that, we can exponentiate (or use the ILINK option, depending on your code) and get the odds ratios.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 12:14:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-Estimate-statement-help/m-p/666051#M31742</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-06-30T12:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: proc genmod Estimate statement help</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-Estimate-statement-help/m-p/666065#M31744</link>
      <description>&lt;P&gt;I have to admit that I have never actually had to do a test like the one you are describing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nevertheless, it seems as if the SLICE command in PROC GENMOD will allow you to compare each interaction P*R and P*E*R for R=0 versus R=1. But as I understand it, the SLICE command works on a single interaction at a time (it will work on P*R and then of course you can do it in a different SLICE command for P*E*R). Nevertheless, that may give you enough information to come to a conclusion. (Or maybe not).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am also wondering if you can re-parameterize the model such that P*R and P*E*R are now one term in the model so that one SLICE statement is all that is needed, but I need to think about that some more.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 13:08:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-Estimate-statement-help/m-p/666065#M31744</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-06-30T13:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: proc genmod Estimate statement help</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-Estimate-statement-help/m-p/666069#M31745</link>
      <description>&lt;P&gt;Thank you both (@PaigeMiller and @ SteveDenham) for the replies. To rephrase my question in model terms:&amp;nbsp;&lt;SPAN&gt;I am interested in looking at the differential effect of exposure on white vs. non-white patients. In the summary equation below, E=exposure, R=Race, and P=period.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;y = b(0) + b1*&lt;EM&gt;P + b2*&lt;/EM&gt;E + b3&lt;EM&gt;R + b4*&lt;/EM&gt;E*&lt;EM&gt;P + b5*&lt;/EM&gt;P*&lt;EM&gt;R + b6*&lt;/EM&gt;E*&lt;EM&gt;R + b7*&lt;/EM&gt;P*&lt;EM&gt;E*&lt;/EM&gt;R.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The effect on whites should be (b2 + b4), for non-whites should be (b2 + b4 + b6 + b7). Therefore, the differential effect should be (b6 + b7). In my model, this would correspond to the coefficients for exposure*&lt;/SPAN&gt;&lt;EM&gt;race + period*&lt;/EM&gt;&lt;SPAN&gt;exposure*race.&amp;nbsp;&lt;/SPAN&gt;My SAS model code is below, setup as a linear regression so that model coefficients should provide a direct estimate of the proportion of patients with Medicaid insurance in this particular model.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;genmod&lt;/STRONG&gt; &lt;SPAN class="s2"&gt;data&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;=have;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s2"&gt;class&lt;/SPAN&gt; year (&lt;SPAN class="s2"&gt;ref&lt;/SPAN&gt;=&lt;SPAN class="s3"&gt;'2011'&lt;/SPAN&gt;)&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;White (&lt;SPAN class="s2"&gt;ref&lt;/SPAN&gt;=&lt;SPAN class="s3"&gt;'1'&lt;/SPAN&gt;)&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;exposure (&lt;SPAN class="s2"&gt;ref&lt;/SPAN&gt;=&lt;SPAN class="s3"&gt;'0'&lt;/SPAN&gt;) period (&lt;SPAN class="s2"&gt;ref&lt;/SPAN&gt;=&lt;SPAN class="s3"&gt;'0'&lt;/SPAN&gt;) confounder1 hospst/;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s2"&gt;model&lt;/SPAN&gt; medicaid= &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;White exposure period exposure*period white*period white*exposure white*exposure*period&lt;/P&gt;&lt;P class="p2"&gt;confounder1;&lt;/P&gt;&lt;P class="p3"&gt;repeated subject&lt;SPAN class="s1"&gt;= hospst/&lt;/SPAN&gt;type&lt;SPAN class="s1"&gt;=ind;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s2"&gt;lsmestimate&lt;/SPAN&gt; white*exposure*period &lt;SPAN class="s3"&gt;'estimate'&lt;/SPAN&gt; &lt;SPAN class="s4"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; -&lt;SPAN class="s4"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; -&lt;SPAN class="s4"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s4"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; -&lt;SPAN class="s4"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s4"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s4"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; -&lt;SPAN class="s4"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P class="p1"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN class="s1"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;I may be mistaken, but it seemed&amp;nbsp; that if I could specify the correct contrast that incorporated both model terms, then I could obtain the p-value for both statements being true (i.e. b6 + b7), relative to 0. For example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;contrast&lt;/SPAN&gt; 'period:expansion + period:expansion:race = 0'&lt;SPAN class="s2"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;expansion*period*race &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s3"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; -&lt;SPAN class="s3"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; -&lt;SPAN class="s3"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s3"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; -&lt;SPAN class="s3"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s3"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s3"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; -&lt;SPAN class="s3"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;,&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;expansion*period &lt;SPAN class="s3"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; -&lt;SPAN class="s3"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; -&lt;SPAN class="s3"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s3"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;I obtained the lsmestimate statement above for the triple interaction by (1, -1)*(1,-1)*(1,-1), and I have found that this lsmestimate statement gives the correct p-value for the interaction specified, as reflected in the main model output. I would have thought that the exposure white*exposure could be specified with (1 -1 -1 1). However, when I test that as an independent statement, it does not give the correct p-value as compared to the model coefficient.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 13:18:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-Estimate-statement-help/m-p/666069#M31745</guid>
      <dc:creator>jgreenberg321</dc:creator>
      <dc:date>2020-06-30T13:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: proc genmod Estimate statement help</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-Estimate-statement-help/m-p/666070#M31746</link>
      <description>&lt;P&gt;That is an interesting idea. I was thinking of something using the Contrast statement, as I laid out above, though am not sure if that will work exactly as I imagine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As far as re-parameterizing the model, I'm not quite sure how I could do that, though am certainly open to any innovative thoughts!&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 13:21:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-Estimate-statement-help/m-p/666070#M31746</guid>
      <dc:creator>jgreenberg321</dc:creator>
      <dc:date>2020-06-30T13:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: proc genmod Estimate statement help</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-Estimate-statement-help/m-p/666125#M31747</link>
      <description>&lt;P&gt;Try running with an LSMEANS statement and the /e option if you are going down the CONTRAST or ESTIMATE road.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to stay with the LSMESTIMATE method, consider that white*exposure can be obtained by finding the marginal mean over period from the white*exposure*period means.&amp;nbsp; That should look something like&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="s2"&gt;lsmestimate&lt;/SPAN&gt;&amp;nbsp;white*exposure*period&amp;nbsp;&lt;SPAN class="s3"&gt;'difference in exposure'&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="s4"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="s4"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;-&lt;/SPAN&gt;&lt;SPAN class="s4"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;-&lt;/SPAN&gt;&lt;SPAN class="s4"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="s4"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="s4"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;-1&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;-&lt;/SPAN&gt;&lt;SPAN class="s4"&gt;&lt;STRONG&gt;1/divisor=2;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="s4"&gt;&lt;STRONG&gt;&lt;SPAN class="s2"&gt;lsmestimate&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;white*exposure*period&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;'difference in white'&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;1&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;1&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;1&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;1&lt;SPAN&gt;&amp;nbsp;-&lt;/SPAN&gt;1&lt;SPAN&gt;&amp;nbsp;-&lt;/SPAN&gt;1&lt;SPAN&gt;&amp;nbsp;-1&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;-&lt;/SPAN&gt;1/divisor=2;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="s4"&gt;and then the combination of both would be the sum of the coefficients to get&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="s4"&gt;&lt;STRONG&gt;&lt;SPAN class="s2"&gt;lsmestimate&lt;/SPAN&gt;&amp;nbsp;white*exposure*period&amp;nbsp;&lt;SPAN class="s3"&gt;'difference in exposure and white'&lt;/SPAN&gt;&amp;nbsp;1&amp;nbsp;1&amp;nbsp;0 0&amp;nbsp;0 0&amp;nbsp;-1&amp;nbsp;-1;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="s4"&gt;Try these and see if the p values match what is in the solution vector.&amp;nbsp; If you want to do CONTRAST or ESTIMATE statements, multiply the coefficients from the /e option (the &lt;STRONG&gt;L&amp;nbsp;&lt;/STRONG&gt;vectors) by the coefficient relative to each LSmean in the LSMESTIMATE statement.&amp;nbsp; This way you will include all of the two way, one way and intercept coefficients.&amp;nbsp; Luckily, many will cancel out.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="s4"&gt;SteveDenham&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 15:35:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-Estimate-statement-help/m-p/666125#M31747</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-06-30T15:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: proc genmod Estimate statement help</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-Estimate-statement-help/m-p/666150#M31748</link>
      <description>&lt;P&gt;Thank you for replying. I am honestly happy to go with either the lsmestimate or the Contrast approach. That said, I'm having trouble fully following what you proposed. Probably most important to me following, how did you obtain the lsmestimate specifications for the comparisons you showed (e.g. multiplying different specifications?)?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That said, I tried entering the summed statement you gave (&lt;STRONG&gt;&lt;SPAN class="s2"&gt;lsmestimate&lt;/SPAN&gt;&amp;nbsp;white*exposure*period&amp;nbsp;&lt;SPAN class="s3"&gt;'difference in exposure and white'&lt;/SPAN&gt;&amp;nbsp;1&amp;nbsp;1&amp;nbsp;0 0&amp;nbsp;0 0&amp;nbsp;-1&amp;nbsp;-1;)&amp;nbsp;&lt;/STRONG&gt;into my model, but got a different p-value from the one obtained in the model coefficients. Is this specification supposed to test whether white*exposure is significantly different from 0, as the model coefficient does? I can see just from the LSMeans table that the p-value provided for White=1, Exposure=1 is not the same as the coefficient in the model output.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Adding insult to injury, out of nowhere I am getting the following error message from lsmestimate, even though the model runs fine with this statement removed &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;ERROR: Variable 'period&amp;nbsp;'n not found.&lt;/P&gt;&lt;P class="p1"&gt;ERROR 22-322: Syntax error, expecting one of the following: a numeric constant, a datetime constant, +, -, [.&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 16:50:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-Estimate-statement-help/m-p/666150#M31748</guid>
      <dc:creator>jgreenberg321</dc:creator>
      <dc:date>2020-06-30T16:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: proc genmod Estimate statement help</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-Estimate-statement-help/m-p/666177#M31753</link>
      <description>&lt;P&gt;Oops, I must apologize - I must have had&amp;nbsp; period as the odd spelling.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, what does&amp;nbsp;&lt;STRONG&gt;&lt;SPAN class="s2"&gt;lsmestimate&lt;/SPAN&gt;&amp;nbsp;white*exposure*period&amp;nbsp;&lt;SPAN class="s3"&gt;'difference in exposure and white'&lt;/SPAN&gt;&amp;nbsp;1&amp;nbsp;1&amp;nbsp;0 0&amp;nbsp;0 0&amp;nbsp;-1&amp;nbsp;-1;&amp;nbsp;&lt;/STRONG&gt;really do?&amp;nbsp; It adds the lsmean of white =1, exposure=1, period=1 to white=1, exposure=1 period=2, and then subtracts the sum of white=2, exposure=2, period=1 and white=2, exposure=2, period=2.&amp;nbsp; thus averaging over both periods and looking at the diagonals of the 2x2 for white and exposure.&amp;nbsp; That is different to the term for the three way interaction in the solution table. That is the additional bit due to what is in the first cell of a 2x2x2 matrix as compared to the reference values for the two-way and one-way variables. Here is some code that might help make this clearer (I know this is GLIMMIX, but all of the principal ideas are the same)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input ANML_NO	GRP_NO	SEX	MEAS_CD	time	day	t	value;
datalines;
1501	1	1	7004	0	1	0	34.28
1503	1	1	7004	0	1	0	34.18
1504	1	1	7004	0	1	0	41.72
1505	1	1	7004	0	1	0	24.25
3502	1	1	7004	0	1	0	38.09
1501	1	1	7004	4	1	4	34.52
1503	1	1	7004	4	1	4	28.54
1504	1	1	7004	4	1	4	32.47
1505	1	1	7004	4	1	4	23.59
3502	1	1	7004	4	1	4	31.15
2501	2	1	7004	0	1	0	82.96
2502	2	1	7004	0	1	0	23.02
2503	2	1	7004	0	1	0	25.94
2504	2	1	7004	0	1	0	22.56
2505	2	1	7004	0	1	0	.
2501	2	1	7004	4	1	4	77.06
2502	2	1	7004	4	1	4	29.31
2503	2	1	7004	4	1	4	33.21
2504	2	1	7004	4	1	4	23.81
2505	2	1	7004	4	1	4	11.65
1501	1	1	7004	0	36	0	46.17
1503	1	1	7004	0	36	0	53.65
1504	1	1	7004	0	36	0	60.3
1505	1	1	7004	0	36	0	36.42
3502	1	1	7004	0	36	0	40.71
1501	1	1	7004	4	36	4	47.41
1503	1	1	7004	4	36	4	55.05
1504	1	1	7004	4	36	4	61.76
1505	1	1	7004	4	36	4	41.54
3502	1	1	7004	4	36	4	40.3
2501	2	1	7004	0	36	0	71.6
2502	2	1	7004	0	36	0	33.09
2503	2	1	7004	0	36	0	56.24
2504	2	1	7004	0	36	0	37.56
2505	2	1	7004	0	36	0	22.77
2501	2	1	7004	4	36	4	52.77
2502	2	1	7004	4	36	4	25.44
2503	2	1	7004	4	36	4	61.52
2504	2	1	7004	4	36	4	42.75
2505	2	1	7004	4	36	4	19.55
;

proc glimmix data=have;* initglm noprofile;
nloptions tech=quanew;
class grp_no day time anml_no;
model value = grp_no|day|time/dist=lognormal ddfm=bw s;
random day/subject=anml_no type=chol;
random time/subject=anml_no*day type=sp(pow)(t) residual;
lsmeans grp_no*day*time/e;
lsmeans grp_no*day/diff;
lsmestimate grp_no*day*time 'Like yours' 1 1 0 0 0 0 -1 -1/divisor=2 e;
run;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you run this and look at the table titled&amp;nbsp;&lt;/P&gt;
&lt;DIV class="branch"&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;
&lt;TABLE class="table" summary="Procedure Glimmix: Coefficients for GRP_NO*day*time Least Squares Means" frame="box" rules="all" cellspacing="0" cellpadding="5"&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="c b header" colspan="12" scope="colgroup"&gt;Coefficients for GRP_NO*day*time Least Squares Means&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;you will see a bunch of 1's and empty cells.&amp;nbsp; If you plug in the values from the solution for fixed effects wherever there is a 1, and sum the columns, you will get the least squares means.&amp;nbsp; Note carefully that the p values in the solution vector do not match the type 3 test p values, except for the highest level interaction.&amp;nbsp; This is because the effects in the type 3 tests are constructed by adding the appropriate solution values together, thus rendering the parameter p values different to the effect p values.&amp;nbsp; So, I would not use the p values in the solution for much.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, on to your original question -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;y = b(0) + b1*&lt;EM&gt;P + b2*&lt;/EM&gt;E + b3&lt;EM&gt;R + b4*&lt;/EM&gt;E*&lt;EM&gt;P + b5*&lt;/EM&gt;P*&lt;EM&gt;R + b6*&lt;/EM&gt;E*&lt;EM&gt;R + b7*&lt;/EM&gt;P*&lt;EM&gt;E*&lt;/EM&gt;R.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The effect on whites should be (b2 + b4), for non-whites should be (b2 + b4 + b6 + b7). Therefore, the differential effect should be (b6 + b7). In my model, this would correspond to the coefficients for exposure*&lt;/SPAN&gt;&lt;EM&gt;race + period*&lt;/EM&gt;&lt;SPAN&gt;exposure*race.&amp;nbsp;&lt;/SPAN&gt;My SAS model code is below, setup as a linear regression so that model coefficients should provide a direct estimate of the proportion of patients with Medicaid insurance in this particular model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OK, translating this to the stuff I put in P=grp_no, E=day, R=time, I get b2*E + b4*E*P or -.2398 - .2483 and b2*E + b4*E*P + b6*E*R +b7*P*E*R or -.2398 - .2483 -.2126 +.3826, finally getting -.2126 +..3826 = .17.&amp;nbsp; But none of the P*E means have this difference, and the marginal difference between E means is -.3746.&amp;nbsp; No matter how much I juggle numbers, I can't see how these are related.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But look at the lsmeans.&amp;nbsp; Here I get all of the means for the 2x2x2 arrangement and for the 4 marginal means for the 2x2 combination of grp_no and day (equivalent to exposure and race in your example).&amp;nbsp; These means in my case are logs of the value on the original scale, so I could get geometric means by exponentiating.&amp;nbsp; I&lt;EM&gt;n your case, you would get counts by exponentiating, and ratios of counts by exponentiating the difference between the lsmeans.&amp;nbsp; &lt;/EM&gt;&amp;nbsp; So, long story to get here, but the lsmeans should set you on the trail to answering your question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edited: the stuff in italics in the above paragraph to reflect your use of a negative binomial distribution.&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 18:34:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-Estimate-statement-help/m-p/666177#M31753</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-06-30T18:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: proc genmod Estimate statement help</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-Estimate-statement-help/m-p/666179#M31754</link>
      <description>&lt;P&gt;It is really always best to avoid using statements where you need to figure out the right coefficients and the right order of them to get the answers you want. That means avoiding the ESTIMATE, CONTRAST, and even LSMESTIMATE statement if possible. When you say your goal is to assess the "differential effect of exposure on white vs. non-white patients", this suggests you just want to see if the exposure/no exposure difference changes for white vs non-white patients. This can be done with a SLICE statement. For example:&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;slice e*r / sliceby=r means;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 18:37:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-Estimate-statement-help/m-p/666179#M31754</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2020-06-30T18:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: proc genmod Estimate statement help</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-Estimate-statement-help/m-p/666185#M31755</link>
      <description>&lt;P&gt;&lt;SPAN&gt;"It is really always best to avoid using statements where you need to figure out the right coefficients and the right order of them to get the answers you want. That means avoiding the ESTIMATE, CONTRAST, and even LSMESTIMATE statement if possible."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Good advice. I think I said something like that earlier in this thread. It should be a maxim.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 19:00:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-Estimate-statement-help/m-p/666185#M31755</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-06-30T19:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: proc genmod Estimate statement help</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-Estimate-statement-help/m-p/666214#M31758</link>
      <description>&lt;P&gt;Thank you very much for the detailed explanation. Overall, that makes a lot of sense and is very much appreciated! One quick follow-up: it seems like the difference in lsmeans should help us understand the effect size of the desired comparison, but is there an easy method for determining statistical significance of the specified comparison? If not, that's OK.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 21:05:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-Estimate-statement-help/m-p/666214#M31758</guid>
      <dc:creator>jgreenberg321</dc:creator>
      <dc:date>2020-06-30T21:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: proc genmod Estimate statement help</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-Estimate-statement-help/m-p/666217#M31759</link>
      <description>&lt;P&gt;Yes, both the LSMEANS statement and the SLICE statement have a number of options that will produce significance tests. See the SAS documentation for details.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 21:24:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-Estimate-statement-help/m-p/666217#M31759</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-06-30T21:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: proc genmod Estimate statement help</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-Estimate-statement-help/m-p/666247#M31764</link>
      <description>&lt;P&gt;Great! Thank you both!&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2020 01:35:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-Estimate-statement-help/m-p/666247#M31764</guid>
      <dc:creator>jgreenberg321</dc:creator>
      <dc:date>2020-07-01T01:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: proc genmod Estimate statement help</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-Estimate-statement-help/m-p/666371#M31765</link>
      <description>&lt;P&gt;You can use a single SLICE statement as I showed before even though there are other interactions including a 3-way interaction. Comparisons like we are discussing are all just comparisons of estimates produced by linear combinations of model parameters. The LSMEANS, SLICE, and LSMESTIMATE statements all estimate and test linear combinations of model parameters just like&amp;nbsp;is done in ESTIMATE or CONTRAST statements. They just determine the coefficients of the linear combinations for you which is why they are preferred to the ESTIMATE and CONTRAST statements where you must properly determine the coefficients. See &lt;A href="http://support.sas.com/kb/24447" target="_self"&gt;this note&lt;/A&gt; that discusses all of this in detail with lots of examples. Just like in the LSMEANS statement, you can add the E option in the SLICE statement to see the coefficients that the statement uses. If you want different coefficients, you can add other options (like OM/OM= and BYLEVEL - see the SLICE and LSMEANS documentation) or you can use these coefficients as a starting point for doing a specialized ESTIMATE or CONTRAST statement, though you still have to specify coefficients that define an estimable contrast.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2020 13:33:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-Estimate-statement-help/m-p/666371#M31765</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2020-07-01T13:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: proc genmod Estimate statement help</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-Estimate-statement-help/m-p/666377#M31768</link>
      <description>&lt;P&gt;Thank you for pointing that all out. One other thing that was pointed out to me is that treating all of my binary (0/1) variables as numerical rather than categorical predictors simplified the specifications. To obtain the correct p-value, I could then do something as simple as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;estimate&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;'triple interaction'&lt;/SPAN&gt; race_dichot*exposure*period &lt;SPAN class="s3"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;This doesn't work for obtaining least squared means, but does seem like a good/simple approach for getting p-values for terms.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2020 13:48:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-genmod-Estimate-statement-help/m-p/666377#M31768</guid>
      <dc:creator>jgreenberg321</dc:creator>
      <dc:date>2020-07-01T13:48:22Z</dc:date>
    </item>
  </channel>
</rss>

