<?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: GLIMMIX SAS CODE with different slopes for ordinal outcome in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-SAS-CODE-with-different-slopes-for-ordinal-outcome/m-p/906368#M45000</link>
    <description>&lt;P&gt;Thanks for your reply,&amp;nbsp; I have tried the code, below and I have very strange results like very high standard errors, what might be the case? because I sude glimmiw for equal slopes and the results look attractive&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc nlmixed data=longil_cat noad  qpoints=30;
title 'BMICAT, PROC NLMIXED, ordinal, adaptive, q=30';
parms int1=2.5080 int2=4.5586 d= 0.07258;

eta1 =int1+ b+beta11*time + beta12***bleep**e + beta13*smoking + beta14*sex + beta15*time***bleep**e + beta16*time*sex;
eta2 = int2 + b + beta11*time + beta22***bleep**e + beta13*smoking + beta14*sex + beta25*time***bleep**e + beta26*time*sex;

if bmi_cat=1 then z = (1/(1+exp(-eta1)));
else if bmi_cat=2  then z = (1/(1+exp(-eta1))) - (1/(1+exp(-eta2)));
else z = 1 - (1/(1+exp(-eta2)));
if z &amp;gt; 1e-20 then ll = log(z);
else ll = -1e10;
model bmi_cat ~ general(ll);
random b ~normal(0,d**2) subject= id out=EB;
estimate 'var(d)' d*d;

run;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="parameter_est_lda.png" style="width: 485px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90842i2972A0186CA9A2AC/image-size/large?v=v2&amp;amp;px=999" role="button" title="parameter_est_lda.png" alt="parameter_est_lda.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 06 Dec 2023 00:47:20 GMT</pubDate>
    <dc:creator>Gilles-Protais</dc:creator>
    <dc:date>2023-12-06T00:47:20Z</dc:date>
    <item>
      <title>GLIMMIX SAS CODE with different slopes for ordinal outcome</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-SAS-CODE-with-different-slopes-for-ordinal-outcome/m-p/905831#M44946</link>
      <description>&lt;P&gt;Please I wish to know whether there is SAS code, on GLIMMIX to&amp;nbsp; handle when the proportional odds assumptions is not verified. So I wish to model the ordinal outcome with different slopes, taking into consideration the random effects.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 02 Dec 2023 11:16:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-SAS-CODE-with-different-slopes-for-ordinal-outcome/m-p/905831#M44946</guid>
      <dc:creator>Gilles-Protais</dc:creator>
      <dc:date>2023-12-02T11:16:14Z</dc:date>
    </item>
    <item>
      <title>GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-SAS-CODE-with-different-slopes-for-ordinal-outcome/m-p/905832#M44947</link>
      <description>&lt;P&gt;Please I wish to know whether there is SAS code, on GLIMMIX to&amp;nbsp; handle when the proportional odds assumptions is not verified. So I wish to model the ordinal outcome with different slopes, taking into consideration the random effects.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 02 Dec 2023 11:18:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-SAS-CODE-with-different-slopes-for-ordinal-outcome/m-p/905832#M44947</guid>
      <dc:creator>Gilles-Protais</dc:creator>
      <dc:date>2023-12-02T11:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX SAS CODE with different slopes for ordinal outcome</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-SAS-CODE-with-different-slopes-for-ordinal-outcome/m-p/905933#M44953</link>
      <description>It looks like you are doing survival analysis . Do you check PROC PHREG 's RANDOM statement ?</description>
      <pubDate>Mon, 04 Dec 2023 02:27:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-SAS-CODE-with-different-slopes-for-ordinal-outcome/m-p/905933#M44953</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-12-04T02:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX SAS CODE with different slopes for ordinal outcome</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-SAS-CODE-with-different-slopes-for-ordinal-outcome/m-p/905958#M44954</link>
      <description>&lt;P&gt;Greetings,&lt;/P&gt;
&lt;P&gt;Thanks very much for your reply,&lt;/P&gt;
&lt;P&gt;Actually am working on a project concerning discrete longitudinal analysis.&lt;/P&gt;
&lt;P&gt;And actually there is evidence of different slopes, so I want to have initial values for me run the NLMIXED procedure.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;when there is evidence of equal slopes, e usually do the GLIMMIX procedure to get the initial values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 09:44:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-SAS-CODE-with-different-slopes-for-ordinal-outcome/m-p/905958#M44954</guid>
      <dc:creator>Gilles-Protais</dc:creator>
      <dc:date>2023-12-04T09:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX SAS CODE with different slopes for ordinal outcome</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-SAS-CODE-with-different-slopes-for-ordinal-outcome/m-p/906045#M44962</link>
      <description>&lt;P&gt;You need a "Random Coefficient Model" with&amp;nbsp;random intercepts and random slopes for each "class"?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See this paper:&lt;/P&gt;
&lt;P&gt;Paper SAS026-2014&lt;BR /&gt;Analyzing Multilevel Models with the GLIMMIX Procedure&lt;BR /&gt;Min Zhu, SAS Institute Inc.&lt;BR /&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings14/SAS026-2014.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings14/SAS026-2014.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This PROC GLIMMIX is on page 11.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix data=mctrial;
class patient center treat;
model dbp = dbp1 treat visit / solution;
random intercept visit / subject = center type=chol;
random intercept       / subject = patient(center) ;
covtest 'Diagonal G' DIAGG;
estimate 'Carvedil vs. Atenolol' treat 1 -1 0;
estimate 'Carvedil vs. Nifedipi' treat 0 1 -1;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 15:56:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-SAS-CODE-with-different-slopes-for-ordinal-outcome/m-p/906045#M44962</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-12-04T15:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX SAS CODE with different slopes for ordinal outcome</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-SAS-CODE-with-different-slopes-for-ordinal-outcome/m-p/906120#M44967</link>
      <description>&lt;P&gt;No , the code below shows a cumulative logit model for&amp;nbsp; equal slopes across the category of the outcome, But I want a was procedure that can produce me different slopes across different categories; if it is possible&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc glimmix data=longil_cat  method=RMPL;
title 'PROC GLIMMIX analysis, ordinal, RMPL';
class id sex(ref="0") smoking(ref="0");
model bmi_cat = time smoking **bleep**e sex time***bleep**e time*sex/ dist=multinomial link=cumlogit solution;
/*random intercept time/ subject=id type=un;*/
random intercept/ subject=id type=un;
/*nloptions maxiter=5000;*/
run;&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 Dec 2023 20:35:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-SAS-CODE-with-different-slopes-for-ordinal-outcome/m-p/906120#M44967</guid>
      <dc:creator>Gilles-Protais</dc:creator>
      <dc:date>2023-12-04T20:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX SAS CODE with different slopes for ordinal outcome</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-SAS-CODE-with-different-slopes-for-ordinal-outcome/m-p/906177#M44978</link>
      <description>&lt;P&gt;PROC LOGISTIC has UNEQUALSLOPES option in the MODEL statement. Check the example Example 79.18: Partial Proportional Odds Model in its documentation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1701753330591.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90784i452A80BF6971051B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1701753330591.png" alt="Ksharp_0-1701753330591.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 05:15:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-SAS-CODE-with-different-slopes-for-ordinal-outcome/m-p/906177#M44978</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-12-05T05:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX SAS CODE with different slopes for ordinal outcome</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-SAS-CODE-with-different-slopes-for-ordinal-outcome/m-p/906216#M44984</link>
      <description>But it does not take into consideration the random effect</description>
      <pubDate>Tue, 05 Dec 2023 10:32:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-SAS-CODE-with-different-slopes-for-ordinal-outcome/m-p/906216#M44984</guid>
      <dc:creator>Gilles-Protais</dc:creator>
      <dc:date>2023-12-05T10:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX SAS CODE with different slopes for ordinal outcome</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-SAS-CODE-with-different-slopes-for-ordinal-outcome/m-p/906223#M44985</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure if UNEQUALSLOPES can be done in a multinomial logit model that is fit with PROC GLIMMIX (because there are mixed effects).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I cannot see that covered in:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Usage Note 22871: Types of logistic (or logit) models that can be fit using SAS®&lt;/STRONG&gt;&lt;BR /&gt;(Date Modified: 2018-09-18 11:31:00)&lt;BR /&gt;&lt;A href="https://support.sas.com/kb/22/871.html" target="_blank"&gt;https://support.sas.com/kb/22/871.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;6 times the string "unequal" is there on that page, but not when GLIMMIX is talked about.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Last update of above usage note was done in September 2018, so maybe&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt;&amp;nbsp;has more info??&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, Koen&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 11:13:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-SAS-CODE-with-different-slopes-for-ordinal-outcome/m-p/906223#M44985</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-12-05T11:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX SAS CODE with different slopes for ordinal outcome</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-SAS-CODE-with-different-slopes-for-ordinal-outcome/m-p/906246#M44987</link>
      <description>&lt;P&gt;See the Addendum at the bottom of &lt;A href="https://support.sas.com/kb/22/954.html" target="_self"&gt;this note&lt;/A&gt; which shows how you can fit a nonproportional odds model to an ordinal response in PROC NLMIXED. You could add a random effect in the model if needed.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 14:57:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-SAS-CODE-with-different-slopes-for-ordinal-outcome/m-p/906246#M44987</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2023-12-05T14:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX SAS CODE with different slopes for ordinal outcome</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-SAS-CODE-with-different-slopes-for-ordinal-outcome/m-p/906368#M45000</link>
      <description>&lt;P&gt;Thanks for your reply,&amp;nbsp; I have tried the code, below and I have very strange results like very high standard errors, what might be the case? because I sude glimmiw for equal slopes and the results look attractive&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc nlmixed data=longil_cat noad  qpoints=30;
title 'BMICAT, PROC NLMIXED, ordinal, adaptive, q=30';
parms int1=2.5080 int2=4.5586 d= 0.07258;

eta1 =int1+ b+beta11*time + beta12***bleep**e + beta13*smoking + beta14*sex + beta15*time***bleep**e + beta16*time*sex;
eta2 = int2 + b + beta11*time + beta22***bleep**e + beta13*smoking + beta14*sex + beta25*time***bleep**e + beta26*time*sex;

if bmi_cat=1 then z = (1/(1+exp(-eta1)));
else if bmi_cat=2  then z = (1/(1+exp(-eta1))) - (1/(1+exp(-eta2)));
else z = 1 - (1/(1+exp(-eta2)));
if z &amp;gt; 1e-20 then ll = log(z);
else ll = -1e10;
model bmi_cat ~ general(ll);
random b ~normal(0,d**2) subject= id out=EB;
estimate 'var(d)' d*d;

run;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="parameter_est_lda.png" style="width: 485px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90842i2972A0186CA9A2AC/image-size/large?v=v2&amp;amp;px=999" role="button" title="parameter_est_lda.png" alt="parameter_est_lda.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Dec 2023 00:47:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-SAS-CODE-with-different-slopes-for-ordinal-outcome/m-p/906368#M45000</guid>
      <dc:creator>Gilles-Protais</dc:creator>
      <dc:date>2023-12-06T00:47:20Z</dc:date>
    </item>
  </channel>
</rss>

