<?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 SURVEYLOGISTIC and interaction: 95%CI for OR of X(=0,1) at Time=t for X*Time in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/PROC-SURVEYLOGISTIC-and-interaction-95-CI-for-OR-of-X-0-1-at/m-p/673353#M23492</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;DId you finally solve this problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;I have a similar problem of interaction between a categorical and a continuous variable using proc surveylogistic and i could not figure it out.Let me know how you solved it.&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jul 2020 05:32:06 GMT</pubDate>
    <dc:creator>ChuksManuel</dc:creator>
    <dc:date>2020-07-30T05:32:06Z</dc:date>
    <item>
      <title>PROC SURVEYLOGISTIC and interaction: 95%CI for OR of X(=0,1) at Time=t for X*Time</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-SURVEYLOGISTIC-and-interaction-95-CI-for-OR-of-X-0-1-at/m-p/512027#M2285</link>
      <description>&lt;P&gt;Hello everyone.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try to compute OR and 95%CI for OR for a binary variable X interacting with a continuous variable TIME (in the product X*Time) for some values of Time=t in PROC SURVEYLOGISTIC. I have SAS 9.4 TS, Level 1M5.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code :&lt;/P&gt;&lt;P&gt;proc surveylogistic data=work;&lt;BR /&gt;cluster username ;&lt;BR /&gt;class X /param=glm;&lt;BR /&gt;model attrition(ref='0')=X TIME X*TIME / varadjust=morel expb rsq ;&lt;BR /&gt;run ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is an option in PROC LOGISTIC, but I cannot find any way for doing the same in PROC SURVEYLOGISTIC.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestion is welcome !&lt;/P&gt;</description>
      <pubDate>Sun, 11 Nov 2018 19:42:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-SURVEYLOGISTIC-and-interaction-95-CI-for-OR-of-X-0-1-at/m-p/512027#M2285</guid>
      <dc:creator>slegleye</dc:creator>
      <dc:date>2018-11-11T19:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SURVEYLOGISTIC and interaction: 95%CI for OR of X(=0,1) at Time=t for X*Time</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-SURVEYLOGISTIC-and-interaction-95-CI-for-OR-of-X-0-1-at/m-p/512055#M2293</link>
      <description>&lt;P&gt;I think you are looking for the CLODDS&amp;nbsp;option on the MODEL statement.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/?cdcId=pgmmvacdc&amp;amp;cdcVersion=9.4&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_surveylogistic_details40.htm&amp;amp;locale=en#statug.surveylogistic.surveylogisticcip" target="_self"&gt;Formulas/explanation&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Nov 2018 01:14:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-SURVEYLOGISTIC-and-interaction-95-CI-for-OR-of-X-0-1-at/m-p/512055#M2293</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-11-12T01:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SURVEYLOGISTIC and interaction: 95%CI for OR of X(=0,1) at Time=t for X*Time</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-SURVEYLOGISTIC-and-interaction-95-CI-for-OR-of-X-0-1-at/m-p/512134#M2304</link>
      <description>&lt;P&gt;&lt;SPAN style="white-space: nowrap;"&gt;Thank&amp;nbsp;you,&amp;nbsp;Rick.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;In fact I want to compute OR for a time-varying variable, at certain time points: I do time-discrete logistic regression, TIME is continuous and X is binary and time-varying.&lt;BR /&gt;&lt;BR /&gt;The database WORK is in person-year format : each individual in my panel (experiment) is observed (ATTRITION=0) until he/she is excluded (ATTRITION=1). For an individual who is observed n-1 times, ATTRITION has value 0 the first n-1 lines and ATTRITION has value 1 the last line at time=n when he/she is excluded. PERSONYEAR has value n-1 for this individual.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="white-space: nowrap;"&gt;If&amp;nbsp;I&amp;nbsp;use&amp;nbsp;simply&amp;nbsp;PROC&amp;nbsp;LOGISTIC,&amp;nbsp;I&amp;nbsp;can&amp;nbsp;use&amp;nbsp;the&amp;nbsp;ODDSRATIO&amp;nbsp;statement&amp;nbsp;:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="white-space: nowrap;"&gt;PROC&amp;nbsp;LOGISTIC&amp;nbsp;data=work&amp;nbsp;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="white-space: nowrap;"&gt;class&amp;nbsp;X/param=glm&amp;nbsp;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="white-space: nowrap;"&gt;Model&amp;nbsp;attrition(ref='0')=TIME&amp;nbsp;X&amp;nbsp;TIME*X&amp;nbsp;PERSONYEAR&amp;nbsp;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="white-space: nowrap;"&gt;ODDSRATIO&amp;nbsp;X&amp;nbsp;/AT&amp;nbsp;(PERSONYEAR=1&amp;nbsp;18&amp;nbsp;36)&amp;nbsp;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="white-space: nowrap;"&gt;RUN&amp;nbsp;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;The problem is that using proc logistic provides underestimated standard errors of the OR. Using PROC SURVEYLOGISTIC with the statement CLUSTER ID (ID being the identification number of the individuals) provides correct standard errors. But it seems there is no similar statement in PROC SURVEYLOGISTIC.&lt;BR /&gt;&lt;BR /&gt;In PROC SURVEYLOGISTIC, it seems that the option CLODDS cannot be used with AT suboption. Or maybe I am wrong ?&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="white-space: nowrap;"&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Nov 2018 09:59:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-SURVEYLOGISTIC-and-interaction-95-CI-for-OR-of-X-0-1-at/m-p/512134#M2304</guid>
      <dc:creator>slegleye</dc:creator>
      <dc:date>2018-11-12T09:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SURVEYLOGISTIC and interaction: 95%CI for OR of X(=0,1) at Time=t for X*Time</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-SURVEYLOGISTIC-and-interaction-95-CI-for-OR-of-X-0-1-at/m-p/512183#M2306</link>
      <description>&lt;P&gt;I see. In that case, I think you want to use the LSMEANS and SLICE statements, as described in the first example in&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/155173"&gt;@SAS_Rob&lt;/a&gt;&amp;nbsp;&lt;A href="https://support.sas.com/resources/papers/proceedings14/SAS404-2014.pdf" target="_self"&gt;Agnelli (2014)&lt;/A&gt;, which seems similar to your design.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Be sure to use the GLM parameterization, as you are already doing. The LSMEANS statement&amp;nbsp;supports the ODDSRATIO and CL option, and the SLICE statement enables you to specify the X values at which you want to estimate the odds ratio.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Nov 2018 20:01:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-SURVEYLOGISTIC-and-interaction-95-CI-for-OR-of-X-0-1-at/m-p/512183#M2306</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-11-12T20:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SURVEYLOGISTIC and interaction: 95%CI for OR of X(=0,1) at Time=t for X*Time</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-SURVEYLOGISTIC-and-interaction-95-CI-for-OR-of-X-0-1-at/m-p/512308#M2322</link>
      <description>&lt;P&gt;Hello Rick, hello everybody.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You picked up the right example in the paper by Agnelli (2014): I also read it. It concerns categorical variables and unfortunately, it does not work for continuous variables...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my case, with X*TIME, TIME being continuous and X binary, and the statement "lsmeans X*TIME/oddsratio cl diff;", I get an error message : "ERROR: Only CLASS variables allowed in this effect".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any other suggestion ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Nov 2018 19:38:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-SURVEYLOGISTIC-and-interaction-95-CI-for-OR-of-X-0-1-at/m-p/512308#M2322</guid>
      <dc:creator>slegleye</dc:creator>
      <dc:date>2018-11-12T19:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SURVEYLOGISTIC and interaction: 95%CI for OR of X(=0,1) at Time=t for X*Time</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-SURVEYLOGISTIC-and-interaction-95-CI-for-OR-of-X-0-1-at/m-p/673353#M23492</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;DId you finally solve this problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;I have a similar problem of interaction between a categorical and a continuous variable using proc surveylogistic and i could not figure it out.Let me know how you solved it.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 05:32:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-SURVEYLOGISTIC-and-interaction-95-CI-for-OR-of-X-0-1-at/m-p/673353#M23492</guid>
      <dc:creator>ChuksManuel</dc:creator>
      <dc:date>2020-07-30T05:32:06Z</dc:date>
    </item>
  </channel>
</rss>

