<?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: Can anyone help me with a contrast statement for interaction term? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Can-anyone-help-me-with-a-contrast-statement-for-interaction/m-p/625124#M30089</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;I spent many hours trying to understand why my&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;contrast statement&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;gives a different&amp;nbsp;OR compared to the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;proc sort statement&lt;/STRONG&gt;. I just cannot figure it out by myself. I would appreciate your help.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Two interaction terms: age (YOUNG/ADULT/OLD) *migraine(Y/N)&amp;nbsp;&lt;/DIV&gt;&lt;DIV&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; &amp;nbsp; sex (M/F) *migraine&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Codes:&lt;/DIV&gt;&lt;DIV&gt;male=0&lt;/DIV&gt;&lt;DIV&gt;female=1&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;young=0&lt;/DIV&gt;&lt;DIV&gt;adult=1&lt;/DIV&gt;&lt;DIV&gt;old=2&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;CONTRAST STATEMENT:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;proc logistic descending;&lt;BR /&gt;class migraine(ref='0') age(ref='0') sex(ref='0') race(ref='0') osa(ref='0') income (ref='1')/param=ref;&lt;BR /&gt;model htn(event="1")=migraine age sex race osa income migraine*age migraine*sex/risklimits;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;contrast 'migraine vs no migraine in young'&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; migraine 1 0 migraine*age 0 0&amp;nbsp; /estimate=both;&lt;BR /&gt;contrast 'migraine vs no migraine in menopause' &amp;nbsp; migraine 1 0 migraine*age 1 0 &amp;nbsp;/estimate=both;&lt;BR /&gt;contrast 'migraine vs no migraine in old'&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;migraine 1 0 migraine*age 0 0 &amp;nbsp;/estimate=both;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;contrast 'migraine vs no migraine in female'&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; migraine 1 0 migraine*sex 1 0 &amp;nbsp;/estimate=both;&lt;BR /&gt;contrast 'migraine vs no migraine in male'&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;migraine 1 0 migraine*sex 0 0 /estimate=both;&lt;BR /&gt;run;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;PROC SORT STATEMENT:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;proc logistic descending;&lt;BR /&gt;class migraine(ref='0') sex (ref='0') race(ref='0') osa(ref='0') income (ref='1')/param=ref;&lt;BR /&gt;model htn=migraine age sex race osa income/risklimits;&lt;BR /&gt;by age;&lt;BR /&gt;run;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;proc logistic descending;&lt;BR /&gt;class migraine(ref='0') age(ref'0') race(ref='0') osa(ref='0') income (ref='1')/param=ref;&lt;BR /&gt;model htn=migraine age sex race osa income/risklimits;&lt;BR /&gt;by sex;&lt;BR /&gt;run;&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;In my contrast statement code, I am able to put the 2 interaction terms together, but I am not able to do the same with proc sort.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I appreciate your advice.&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please, if you know how to solve it, contact me: simone_derzi@hotmail.com&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Sun, 16 Feb 2020 17:35:11 GMT</pubDate>
    <dc:creator>mone</dc:creator>
    <dc:date>2020-02-16T17:35:11Z</dc:date>
    <item>
      <title>Can anyone help me with a contrast statement for interaction term?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Can-anyone-help-me-with-a-contrast-statement-for-interaction/m-p/625064#M30075</link>
      <description>&lt;P&gt;jj&lt;/P&gt;</description>
      <pubDate>Sun, 16 Feb 2020 16:14:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Can-anyone-help-me-with-a-contrast-statement-for-interaction/m-p/625064#M30075</guid>
      <dc:creator>mone</dc:creator>
      <dc:date>2020-02-16T16:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone help me with a contrast statement for interaction term?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Can-anyone-help-me-with-a-contrast-statement-for-interaction/m-p/625068#M30076</link>
      <description>&lt;P&gt;Welcome to the SAS community Simone.&lt;/P&gt;
&lt;P&gt;I can't answer your question, but I have a comment about the format.&lt;/P&gt;
&lt;P&gt;I reckon that you should protect your identity a bit better.&lt;/P&gt;
&lt;P&gt;I would not publish my email address and phone number like this.&lt;/P&gt;
&lt;P&gt;Just my (paranoid) 2 cents of course. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, you should format your code when posting it here. There are 2 icons to do that: running man and &lt;FONT face="courier new,courier"&gt;{i}.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Feb 2020 09:02:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Can-anyone-help-me-with-a-contrast-statement-for-interaction/m-p/625068#M30076</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-02-16T09:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone help me with a contrast statement for interaction term?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Can-anyone-help-me-with-a-contrast-statement-for-interaction/m-p/625071#M30077</link>
      <description>&lt;P&gt;Better post this kind of question at STAT forum. &amp;nbsp; &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt; &amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp; could give you a hand.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Feb 2020 07:49:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Can-anyone-help-me-with-a-contrast-statement-for-interaction/m-p/625071#M30077</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-02-16T07:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone help me with a contrast statement for interaction term?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Can-anyone-help-me-with-a-contrast-statement-for-interaction/m-p/625082#M30078</link>
      <description>&lt;P&gt;I moved the question to the Statistical Procedures community.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Feb 2020 08:52:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Can-anyone-help-me-with-a-contrast-statement-for-interaction/m-p/625082#M30078</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-02-16T08:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone help me with a contrast statement for interaction term?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Can-anyone-help-me-with-a-contrast-statement-for-interaction/m-p/625084#M30079</link>
      <description>&lt;P&gt;Concur with &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt;&amp;nbsp;, don't post your email like that, unless you have a strong interest in male enhancement drugs and are looking for a wife from Russia &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Feb 2020 08:56:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Can-anyone-help-me-with-a-contrast-statement-for-interaction/m-p/625084#M30079</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-02-16T08:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone help me with a contrast statement for interaction term?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Can-anyone-help-me-with-a-contrast-statement-for-interaction/m-p/625087#M30080</link>
      <description>&lt;P&gt;Or your phone number being on all the calling robots' lists.&lt;BR /&gt;Don't help the privacy invaders. Resist.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Feb 2020 09:11:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Can-anyone-help-me-with-a-contrast-statement-for-interaction/m-p/625087#M30080</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-02-16T09:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone help me with a contrast statement for interaction term?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Can-anyone-help-me-with-a-contrast-statement-for-interaction/m-p/625088#M30081</link>
      <description>&lt;P&gt;I reckon you can remove the last line of your signature Kurt, now that your (good) proposal has been mothballed.&lt;/P&gt;
&lt;P&gt;I wonder how many Ballot ideas are closed with status IMPLEMENTED? Are there any?&lt;/P&gt;</description>
      <pubDate>Sun, 16 Feb 2020 09:10:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Can-anyone-help-me-with-a-contrast-statement-for-interaction/m-p/625088#M30081</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-02-16T09:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone help me with a contrast statement for interaction term?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Can-anyone-help-me-with-a-contrast-statement-for-interaction/m-p/625107#M30083</link>
      <description>&lt;P&gt;There is a SAS Knowledge Base article about &lt;A href="https://support.sas.com/kb/24/447.html" target="_self"&gt;writing contrast statements that involve interactions&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;I assume the levels of Migraine are 0 and 1.&lt;/P&gt;
&lt;P&gt;What are the levels (and interpretation) of the Age variable?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Feb 2020 11:12:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Can-anyone-help-me-with-a-contrast-statement-for-interaction/m-p/625107#M30083</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-02-16T11:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone help me with a contrast statement for interaction term?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Can-anyone-help-me-with-a-contrast-statement-for-interaction/m-p/625108#M30084</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/312346"&gt;@mone&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have this code, but I do not know what to do where I have question marks. Can anyone give me a hand? t&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc logistic data=cchs1516study;&lt;BR /&gt;class migraine(ref='0') age(ref='0') sex(ref='0') race(ref='0') osa(ref='0') income (ref='1')/param=ref;&lt;BR /&gt;model htn=migraine age sex race osa income age*migraine sex*migraine/risklimits;&lt;BR /&gt;contrast 'migraine vs no migraine in young people'&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; age ???? age*migraine ??? /estimate=both;&lt;BR /&gt;contrast 'migraine vs no migraine in menopause people'&amp;nbsp; &amp;nbsp;age ???? age*migraine ??? /estimate=both;&lt;BR /&gt;contrast 'migraine vs no migraine in old people'&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;age ???? age*migraine ??? /estimate=both;&lt;/P&gt;
&lt;P&gt;contrast 'female vs male in 20-40 group'&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; age ???? sex*migraine ??? /estimate=both;&lt;BR /&gt;contrast 'female vs male in 40-60 group'&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; age ???? sex*migraine ??? /estimate=both;&lt;BR /&gt;contrast 'female vs male in &amp;gt;60 group'&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;age ???? sex*migraine ??? /estimate=both;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I really appreciate it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Simone&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;In my opinion, the whole idea of using a CONTRAST statement is for cases where you are making some unusual linear combination of results, such as -1.3 * level 1 + 3.4 * level2 ... &lt;EM&gt;etc&lt;/EM&gt;., where the coefficients are not +1 or –1 or zero. It is not for the case where you are directly comparing one group to another, all the coefficients are +1 or -1 or zero.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the case where there are two coefficients that are +1 or -1 and the rest are zero, you can use the LSMEANS command or the SLICE command to obtain the results, and then you don't have the difficulty of figuring out what the proper CONTRAST statement is, because SAS has already done this for you. See the first example at: &lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_introcom_sect064.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en" target="_blank" rel="noopener"&gt;https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_introcom_sect064.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Feb 2020 11:58:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Can-anyone-help-me-with-a-contrast-statement-for-interaction/m-p/625108#M30084</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-02-16T11:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone help me with a contrast statement for interaction term?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Can-anyone-help-me-with-a-contrast-statement-for-interaction/m-p/625124#M30089</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;I spent many hours trying to understand why my&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;contrast statement&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;gives a different&amp;nbsp;OR compared to the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;proc sort statement&lt;/STRONG&gt;. I just cannot figure it out by myself. I would appreciate your help.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Two interaction terms: age (YOUNG/ADULT/OLD) *migraine(Y/N)&amp;nbsp;&lt;/DIV&gt;&lt;DIV&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; &amp;nbsp; sex (M/F) *migraine&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Codes:&lt;/DIV&gt;&lt;DIV&gt;male=0&lt;/DIV&gt;&lt;DIV&gt;female=1&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;young=0&lt;/DIV&gt;&lt;DIV&gt;adult=1&lt;/DIV&gt;&lt;DIV&gt;old=2&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;CONTRAST STATEMENT:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;proc logistic descending;&lt;BR /&gt;class migraine(ref='0') age(ref='0') sex(ref='0') race(ref='0') osa(ref='0') income (ref='1')/param=ref;&lt;BR /&gt;model htn(event="1")=migraine age sex race osa income migraine*age migraine*sex/risklimits;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;contrast 'migraine vs no migraine in young'&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; migraine 1 0 migraine*age 0 0&amp;nbsp; /estimate=both;&lt;BR /&gt;contrast 'migraine vs no migraine in menopause' &amp;nbsp; migraine 1 0 migraine*age 1 0 &amp;nbsp;/estimate=both;&lt;BR /&gt;contrast 'migraine vs no migraine in old'&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;migraine 1 0 migraine*age 0 0 &amp;nbsp;/estimate=both;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;contrast 'migraine vs no migraine in female'&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; migraine 1 0 migraine*sex 1 0 &amp;nbsp;/estimate=both;&lt;BR /&gt;contrast 'migraine vs no migraine in male'&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;migraine 1 0 migraine*sex 0 0 /estimate=both;&lt;BR /&gt;run;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;PROC SORT STATEMENT:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;proc logistic descending;&lt;BR /&gt;class migraine(ref='0') sex (ref='0') race(ref='0') osa(ref='0') income (ref='1')/param=ref;&lt;BR /&gt;model htn=migraine age sex race osa income/risklimits;&lt;BR /&gt;by age;&lt;BR /&gt;run;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;proc logistic descending;&lt;BR /&gt;class migraine(ref='0') age(ref'0') race(ref='0') osa(ref='0') income (ref='1')/param=ref;&lt;BR /&gt;model htn=migraine age sex race osa income/risklimits;&lt;BR /&gt;by sex;&lt;BR /&gt;run;&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;In my contrast statement code, I am able to put the 2 interaction terms together, but I am not able to do the same with proc sort.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I appreciate your advice.&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please, if you know how to solve it, contact me: simone_derzi@hotmail.com&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Sun, 16 Feb 2020 17:35:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Can-anyone-help-me-with-a-contrast-statement-for-interaction/m-p/625124#M30089</guid>
      <dc:creator>mone</dc:creator>
      <dc:date>2020-02-16T17:35:11Z</dc:date>
    </item>
  </channel>
</rss>

