<?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 Clarification needed for glimmix in ordinal regression testing in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Clarification-needed-for-glimmix-in-ordinal-regression-testing/m-p/928254#M46222</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;I would like to ask for a clarification. If anyone could help me, I will be very much obliged. I have an experiment with five treatments (diets fed to animals in different parks), the response score was measured everyday, for 35 days. response variable is ordinal with three levels: 0 no effect, 1 mild effect, 2 high effect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried the following approach&lt;/P&gt;&lt;P&gt;proc glimmix data=score method=?;&lt;BR /&gt;class diet score;&lt;BR /&gt;model score = diet / link=cumlogit dist=multinomial;&lt;BR /&gt;random time / sub=park type=ar(1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried several 'method=' but would like advice which would best apply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, in this paper with a similar approach, authors calculate the probability of score HIGH, which I would also like to apply here. Authors state the following formula but I'm not aware how to obtain the logit values in my case:&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;p&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;= exp(logit)/(1 + exp(logit))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.mdpi.com/2076-2615/13/21/3350" target="_blank" rel="noopener"&gt;https://www.mdpi.com/2076-2615/13/21/3350&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any ideas appreciated.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 14 May 2024 10:00:49 GMT</pubDate>
    <dc:creator>Migueldoisa</dc:creator>
    <dc:date>2024-05-14T10:00:49Z</dc:date>
    <item>
      <title>Clarification needed for glimmix in ordinal regression testing</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Clarification-needed-for-glimmix-in-ordinal-regression-testing/m-p/928254#M46222</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I would like to ask for a clarification. If anyone could help me, I will be very much obliged. I have an experiment with five treatments (diets fed to animals in different parks), the response score was measured everyday, for 35 days. response variable is ordinal with three levels: 0 no effect, 1 mild effect, 2 high effect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried the following approach&lt;/P&gt;&lt;P&gt;proc glimmix data=score method=?;&lt;BR /&gt;class diet score;&lt;BR /&gt;model score = diet / link=cumlogit dist=multinomial;&lt;BR /&gt;random time / sub=park type=ar(1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried several 'method=' but would like advice which would best apply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, in this paper with a similar approach, authors calculate the probability of score HIGH, which I would also like to apply here. Authors state the following formula but I'm not aware how to obtain the logit values in my case:&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;p&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;= exp(logit)/(1 + exp(logit))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.mdpi.com/2076-2615/13/21/3350" target="_blank" rel="noopener"&gt;https://www.mdpi.com/2076-2615/13/21/3350&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any ideas appreciated.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 10:00:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Clarification-needed-for-glimmix-in-ordinal-regression-testing/m-p/928254#M46222</guid>
      <dc:creator>Migueldoisa</dc:creator>
      <dc:date>2024-05-14T10:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification needed for glimmix in ordinal regression testing</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Clarification-needed-for-glimmix-in-ordinal-regression-testing/m-p/928673#M46263</link>
      <description>&lt;P&gt;For anyone who might see this,&lt;/P&gt;&lt;P&gt;I found this very nice tutorial on the subject&lt;/P&gt;&lt;P&gt;&lt;A href="https://agstats.ca/2019/06/25/working-with-binary-and-multinomial-data-in-glimmix/" target="_blank" rel="noopener"&gt;https://agstats.ca/2019/06/25/working-with-binary-and-multinomial-data-in-glimmix/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and am currently working with following script:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;proc glimmix data=score method=laplace;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;class diet;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;model score = diet / link=cumlogit dist=multinomial oddsratio(diff=all);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;random time / sub=park type=ar(1);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;contrast "Control vs others" diet 4 -1 -1 -1 -1;&lt;/DIV&gt;&lt;DIV&gt;estimate "score 0,1 in Control" intercept 0 1 0 diet 1 0 0 0 0 /ilink;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have removed score from class statement as it doesn't seem to make a difference.&lt;/DIV&gt;&lt;DIV&gt;I have added oddsratio although I don't think I'll need it seeing as I'm using contrasts?&lt;/DIV&gt;&lt;DIV&gt;And from that tutorial I also found I can use estimate to compute the probability of score 2, which is what I need. From what I understand, for diet 1, the statement "intercept 0 1 0 diet 1 0 0 0 0" would compute the cumulative probability of score 0 and 1. Thus, the probability of score 2 would be 1 minus that. Is this correct?&lt;/DIV&gt;&lt;DIV&gt;However, I'm getting a warning:&amp;nbsp;&lt;DIV class=""&gt;"WARNING: More coefficients than levels specified for effect Intercept. Some coefficients will be ignored."&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;I have 3 coefficients, seeing as I have 3 levels of score (0, 1, 2). Am I misjudging something?&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I still don't know how to determine/choose which method= statement to use.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Attentively,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 16 May 2024 14:28:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Clarification-needed-for-glimmix-in-ordinal-regression-testing/m-p/928673#M46263</guid>
      <dc:creator>Migueldoisa</dc:creator>
      <dc:date>2024-05-16T14:28:34Z</dc:date>
    </item>
  </channel>
</rss>

