<?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: Difficulties (R-side rand. eff. error) in glimmix for logistic regression for crossover design in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Difficulties-R-side-rand-eff-error-in-glimmix-for-logistic/m-p/668850#M31938</link>
    <description>&lt;P&gt;Your first PROC GLIMMIX code will fix the incompatibility between the multinomial distribution and the residual option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Make sure that timepoint and period refer to different design elements.&amp;nbsp; You may want to include timepoint in the model statement.&amp;nbsp; Consider this MODEL statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;model AVALC = sequence period drug period*drug timepoint timepoint*period/ CL dist=multinomial link=clogit solution ODDSRATIO;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If this leads to convergence problems remove the timepoint associated terms.&amp;nbsp; However the period*drug interaction is likely necessary for calculating odds ratios between the two test articles within each period.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jul 2020 14:46:03 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2020-07-13T14:46:03Z</dc:date>
    <item>
      <title>Difficulties (R-side rand. eff. error) in glimmix for logistic regression for crossover design</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Difficulties-R-side-rand-eff-error-in-glimmix-for-logistic/m-p/668785#M31932</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi to all!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I've faced with some strange formulation in some Clinical Study Protocol: "&lt;/SPAN&gt;mixed ordered logistic regression" and I've tried to perform it using&amp;nbsp;&lt;STRONG style="font-family: inherit;"&gt;proc glimmix.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Could you please help me with resolving difficulties in applying this?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;My study is a crossover study, with 2 periods and 2 drugs. The study protocol says that I should include&lt;/SPAN&gt;&lt;I&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/I&gt;&lt;SPAN&gt;sequence, period and treatment as fixed effects and a repeated effect for patients within sequences to model and using a compound symmetry covariance structure.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My endpoint ‘Ocular Discomfort’ is a scale and has following scores:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;0 = no discomfort&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1 = mild discomfort&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2 = moderate discomfort&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3 = severe discomfort&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4 = very severe discomfort&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also my endpoint was evaluated several times for visit the following time points: 0, 5, 10, 20 min.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I read that in the proc glimmix, I can specify a repeated structure by adding the _RESIDUAL_ keyword to the RANDOM statement. I wanted to use the following code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;glimmix&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;data=t1 ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;class SUBJID sequence period drug timepoint;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;model AVALC = sequence period drug/ CL dist=multinomial link=clogit solution ODDSRATIO;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;random timepoint/ subject=SUBJID(sequence) residual type=cs;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;estimate 'Trt vs. Control' drug&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;-&lt;/SPAN&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;But it didn’t work and I got the following error:&amp;nbsp; "&lt;STRONG&gt;ERROR: R-side random effects are not supported for the multinomial distribution."&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I have applied the model as follows, but I'm not sure if this satisfies the protocol requirements:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;glimmix&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;data=t1 method=laplace;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;class SUBJID sequence period drug timepoint;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;model AVALC = sequence period drug/ CL dist=multinomial link=clogit solution ODDSRATIO;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;random timepoint/ subject=SUBJID(sequence) type=cs;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;estimate 'Trt vs. Control' drug&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;-&lt;/SPAN&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I would be grateful for comments about the error using the _RESIDUAL_ and how can this be fixed?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 11:35:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Difficulties-R-side-rand-eff-error-in-glimmix-for-logistic/m-p/668785#M31932</guid>
      <dc:creator>AndreyMyslivets</dc:creator>
      <dc:date>2020-07-13T11:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulties (R-side rand. eff. error) in glimmix for logistic regression for crossover design</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Difficulties-R-side-rand-eff-error-in-glimmix-for-logistic/m-p/668850#M31938</link>
      <description>&lt;P&gt;Your first PROC GLIMMIX code will fix the incompatibility between the multinomial distribution and the residual option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Make sure that timepoint and period refer to different design elements.&amp;nbsp; You may want to include timepoint in the model statement.&amp;nbsp; Consider this MODEL statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;model AVALC = sequence period drug period*drug timepoint timepoint*period/ CL dist=multinomial link=clogit solution ODDSRATIO;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If this leads to convergence problems remove the timepoint associated terms.&amp;nbsp; However the period*drug interaction is likely necessary for calculating odds ratios between the two test articles within each period.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 14:46:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Difficulties-R-side-rand-eff-error-in-glimmix-for-logistic/m-p/668850#M31938</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-07-13T14:46:03Z</dc:date>
    </item>
  </channel>
</rss>

