<?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 modelling ordinal data (glimmix) in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/modelling-ordinal-data-glimmix/m-p/798391#M39249</link>
    <description>&lt;P&gt;Hi there!&lt;/P&gt;
&lt;P&gt;I'm trying to model ordinal data and I'm not sure how to do it. What I try to do is called in vet epidemiology&amp;nbsp; a continuation-ratio model, which relates the probability of being in a category to the probability of being in any lower category. I would then produce a complete set of coefficients for each of the categories above the baseline.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure I have the right approach to do this... because it does not seem to give me the results by categories as I expect...&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix data=Qu_c method=quad (initpl=5 qpoints=7) plots=residualpanel;
class no_ferme type_lit(ref="0") type_stab(ref="2") Epais_lit(ref="0")pis ;
model pis = type_lit type_stab  Epais_lit/ dist=mult link=clogit solution or;
random intercept / subject=no_ferme;
estimate " RMS Vs straw" type_lit 1 -1/ or;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;pis= hygiene score of the udder (1, 2, 3, or 4)&lt;/P&gt;
&lt;P&gt;type_lit= my main predictor (0, 1)&lt;/P&gt;
&lt;P&gt;type_stab (0, 1) and Epais_lit (0, 1) are covariates&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know if SAS grammary for the type of model I try to realize is different than how the model is called in my books...&lt;/P&gt;
&lt;P&gt;So.... thank you for your advices!:)&lt;/P&gt;</description>
    <pubDate>Thu, 24 Feb 2022 14:59:03 GMT</pubDate>
    <dc:creator>Annie_Fréchette</dc:creator>
    <dc:date>2022-02-24T14:59:03Z</dc:date>
    <item>
      <title>modelling ordinal data (glimmix)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/modelling-ordinal-data-glimmix/m-p/798391#M39249</link>
      <description>&lt;P&gt;Hi there!&lt;/P&gt;
&lt;P&gt;I'm trying to model ordinal data and I'm not sure how to do it. What I try to do is called in vet epidemiology&amp;nbsp; a continuation-ratio model, which relates the probability of being in a category to the probability of being in any lower category. I would then produce a complete set of coefficients for each of the categories above the baseline.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure I have the right approach to do this... because it does not seem to give me the results by categories as I expect...&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix data=Qu_c method=quad (initpl=5 qpoints=7) plots=residualpanel;
class no_ferme type_lit(ref="0") type_stab(ref="2") Epais_lit(ref="0")pis ;
model pis = type_lit type_stab  Epais_lit/ dist=mult link=clogit solution or;
random intercept / subject=no_ferme;
estimate " RMS Vs straw" type_lit 1 -1/ or;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;pis= hygiene score of the udder (1, 2, 3, or 4)&lt;/P&gt;
&lt;P&gt;type_lit= my main predictor (0, 1)&lt;/P&gt;
&lt;P&gt;type_stab (0, 1) and Epais_lit (0, 1) are covariates&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know if SAS grammary for the type of model I try to realize is different than how the model is called in my books...&lt;/P&gt;
&lt;P&gt;So.... thank you for your advices!:)&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 14:59:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/modelling-ordinal-data-glimmix/m-p/798391#M39249</guid>
      <dc:creator>Annie_Fréchette</dc:creator>
      <dc:date>2022-02-24T14:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: modelling ordinal data (glimmix)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/modelling-ordinal-data-glimmix/m-p/798402#M39250</link>
      <description>&lt;P&gt;Your code looks fine. Statisticians call this a cumulative logit model, but your description sounds similar.&lt;/P&gt;
&lt;P&gt;You do not state why you think "it does not seem to give me the results by categories as I expect." Perhaps post your parameter estimates and explain what you expect versus what you are seeing?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the odds ratio table is not what you expect, &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/v_021/statug/statug_glimmix_details55.htm" target="_self"&gt;be sure to read this section of the doc.&lt;/A&gt;&amp;nbsp;The table shows the log-odds. &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/v_021/statug/statug_glimmix_details54.htm" target="_self"&gt;You can get the&amp;nbsp;odds ratio by exponentiating the difference.&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 16:04:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/modelling-ordinal-data-glimmix/m-p/798402#M39250</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-02-24T16:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: modelling ordinal data (glimmix)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/modelling-ordinal-data-glimmix/m-p/798413#M39251</link>
      <description>&lt;P&gt;Yeah sorry if I'm not clear.&amp;nbsp; Here are the estimates:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Annie_Frchette_0-1645719909105.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/68825i1ECA20239BEF91E9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Annie_Frchette_0-1645719909105.png" alt="Annie_Frchette_0-1645719909105.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;My goal is to have 3 odds ratios:&lt;/P&gt;
&lt;P&gt;Odd of having a hygiene udder score of 2 vs1&lt;/P&gt;
&lt;P&gt;Odds of having a score of 3 vs (1 and 2)&lt;/P&gt;
&lt;P&gt;Odds of having a score of 4 vs (1, 2 and 3).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure if my model is equivalent of your link one....&lt;/P&gt;
&lt;P&gt;ln&amp;nbsp;&lt;U&gt; p(Y=j)&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; p(Y&amp;lt;j)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 16:30:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/modelling-ordinal-data-glimmix/m-p/798413#M39251</guid>
      <dc:creator>Annie_Fréchette</dc:creator>
      <dc:date>2022-02-24T16:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: modelling ordinal data (glimmix)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/modelling-ordinal-data-glimmix/m-p/798418#M39252</link>
      <description>&lt;P&gt;When you are looking for a particular statistic or method in SAS, check the list of Frequently Asked-for Statistics (FASTats) in the Important Links section of the Statistical Procedures Community page. See the "Continuation ratio logit model" item in FASTats which points you to a note on the wide variety of logistic models that can be fit in SAS. The entry there on the continuation ratio logit model briefly describes the model and now it can be fit and points to an &lt;A href="https://support.sas.com/kb/24/495.html" target="_self"&gt;example&lt;/A&gt; that shows ways that you can fit the model. The second method using PROC LOGISTIC should be possible for you to do using PROC GLIMMIX in the same way. Or you could use PROC GEE to fit a GEE type of model to each of the continuation ratio logits.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 16:47:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/modelling-ordinal-data-glimmix/m-p/798418#M39252</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2022-02-24T16:47:08Z</dc:date>
    </item>
  </channel>
</rss>

