<?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: Ordinal response Doubly repeated measures in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Ordinal-response-Doubly-repeated-measures/m-p/243449#M12831</link>
    <description>&lt;P&gt;Now I have reduced number of response categories and it works with AR(1) and UN(1) but G matrix&amp;nbsp; is not positive definite&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jan 2016 11:26:50 GMT</pubDate>
    <dc:creator>FabioMC</dc:creator>
    <dc:date>2016-01-14T11:26:50Z</dc:date>
    <item>
      <title>Ordinal response Doubly repeated measures</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Ordinal-response-Doubly-repeated-measures/m-p/242881#M12787</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to setup a&amp;nbsp;two variables, all with&amp;nbsp;ordinal response scores, doubly repeated measures program where &amp;nbsp;the two variables are evaluated in a number of animals by 3&amp;nbsp;observers for&amp;nbsp;&amp;nbsp;3 times (time0=now, time1=after some time form time0, time2=after some time from time1).&lt;/P&gt;&lt;P&gt;It is of interest to state if there is a significant&amp;nbsp;effect of time &amp;nbsp;on scores for the two varables.&lt;/P&gt;&lt;P&gt;I tried the following code (after having read suggestions by Steve Dunham) about similar topic&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix data=mydata pconv=1e-6;
   where variable='a';
   class animal  time evaluator;
   nloptions maxiter=100;
   model response = / s link=cumprobit dist=multinomial ddfm=kr2;
   random int time /s sub=evaluator type=ar(1);
   run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Being unsure of correctness of the above code I kindly ask users&amp;nbsp;for useful suggestions.&lt;/P&gt;&lt;P&gt;Fabio&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 10:03:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Ordinal-response-Doubly-repeated-measures/m-p/242881#M12787</guid>
      <dc:creator>FabioMC</dc:creator>
      <dc:date>2016-01-12T10:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Ordinal response Doubly repeated measures</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Ordinal-response-Doubly-repeated-measures/m-p/242957#M12790</link>
      <description>&lt;P&gt;I might suggest something a little different: &amp;nbsp;you need to accommodate animal as a subject as well as specifying time as a fixed effect in the model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;proc&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;glimmix&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;mydata pconv&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;1e-6&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
   &lt;SPAN class="token statement"&gt;where&lt;/SPAN&gt; variable&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'a'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
   &lt;SPAN class="token statement"&gt;class&lt;/SPAN&gt; animal  &lt;SPAN class="token function"&gt;time&lt;/SPAN&gt; evaluator&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
   &lt;SPAN class="token keyword"&gt;nloptions&lt;/SPAN&gt; maxiter&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;100&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
   &lt;SPAN class="token procnames"&gt;model&lt;/SPAN&gt; response &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; time&lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt; s link&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;cumprobit dist&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;multinomial ddfm&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;kr2&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
   random &lt;SPAN class="token function"&gt;int&lt;/SPAN&gt;  &lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt;s sub&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;evaluator type=un(1);&lt;BR /&gt;   random time /s sub=evaluator*animal type=ar(1);
   &lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This assumes that the time points are equally spaced and that the evaluators are independent. &amp;nbsp;The analysis is a marginal analysis. &amp;nbsp;You may want to use a conditional analysis in this case, where the results are conditional on the random effects, rather than averaged over the random effects. &amp;nbsp;To get that, add METHOD=LAPLACE to the PROC GLIMMIX statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 16:09:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Ordinal-response-Doubly-repeated-measures/m-p/242957#M12790</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2016-01-12T16:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Ordinal response Doubly repeated measures</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Ordinal-response-Doubly-repeated-measures/m-p/243161#M12803</link>
      <description>&lt;P&gt;Dear Steve, thanks&amp;nbsp;for the precious suggestions.&lt;/P&gt;&lt;P&gt;I have applied the syntax you suggested, but convergence was&amp;nbsp;not obtained when&amp;nbsp;covariance structures AR(1) and UN(1) was&amp;nbsp;used. &amp;nbsp;&lt;/P&gt;&lt;P&gt;I set both covariance structures to defaults and convergence was obtained.&lt;/P&gt;&lt;P&gt;What do you think about? Is there a way to&amp;nbsp;get convergence applying covariance structures you suggested ?&lt;/P&gt;&lt;P&gt;I think that a cause of not getting convergence&amp;nbsp;could&amp;nbsp;the small number of animals (N=7).&lt;/P&gt;&lt;P&gt;Is there a significant impaiment of the model if default structures are used?&lt;/P&gt;&lt;P&gt;Here is&amp;nbsp;&amp;nbsp;the program that has worked&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix data=mydata pconv=1e-6;
   where variable='a';
   class animal  time evaluator;
   nloptions maxiter=100;
   model response = time/ s link=cumprobit dist=multinomial ddfm=kr2;
   random int  /s sub=evaluator /*type=un(1)*/;   random time /s sub=evaluator*animal /*type=ar(1)*/;
   run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Fabio&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 11:55:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Ordinal-response-Doubly-repeated-measures/m-p/243161#M12803</guid>
      <dc:creator>FabioMC</dc:creator>
      <dc:date>2016-01-13T11:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Ordinal response Doubly repeated measures</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Ordinal-response-Doubly-repeated-measures/m-p/243177#M12807</link>
      <description>&lt;P&gt;Have you tried without a structure for evaluator but with a structure for time?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 13:50:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Ordinal-response-Doubly-repeated-measures/m-p/243177#M12807</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2016-01-13T13:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Ordinal response Doubly repeated measures</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Ordinal-response-Doubly-repeated-measures/m-p/243189#M12810</link>
      <description>Yes, also in this case there is no convergence.&lt;BR /&gt;&lt;BR /&gt;##- Please type your reply above this line. Simple formatting, no&lt;BR /&gt;attachments. -##</description>
      <pubDate>Wed, 13 Jan 2016 14:09:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Ordinal-response-Doubly-repeated-measures/m-p/243189#M12810</guid>
      <dc:creator>FabioMC</dc:creator>
      <dc:date>2016-01-13T14:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: Ordinal response Doubly repeated measures</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Ordinal-response-Doubly-repeated-measures/m-p/243449#M12831</link>
      <description>&lt;P&gt;Now I have reduced number of response categories and it works with AR(1) and UN(1) but G matrix&amp;nbsp; is not positive definite&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2016 11:26:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Ordinal-response-Doubly-repeated-measures/m-p/243449#M12831</guid>
      <dc:creator>FabioMC</dc:creator>
      <dc:date>2016-01-14T11:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Ordinal response Doubly repeated measures</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Ordinal-response-Doubly-repeated-measures/m-p/243556#M12843</link>
      <description>&lt;P&gt;That generally means that you have insufficient data to estimate all the parameters in the G matrix--some come up as zero. &amp;nbsp;This should not deter you from the analysis, as something like 'Final Hessian is not positive definite' would. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For models that aren't converging, one thing you may want to check up on is the behavior of the objective function--if it is behaving relatively smoothly, and you still haven't converged, you might try increasing the maxiter= value, or relaxing the convergence criteria.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2016 19:04:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Ordinal-response-Doubly-repeated-measures/m-p/243556#M12843</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2016-01-14T19:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Ordinal response Doubly repeated measures</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Ordinal-response-Doubly-repeated-measures/m-p/243707#M12845</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix data=mydata pconv=1e-6;
   class variable animal  time evaluator;
   nloptions maxiter=100;
   model response = variable | time / s link=cumprobit dist=multinomial ddfm=kr2;
   random int  /s sub=evaluator type=un(1);   random time /s sub=evaluator*animal type=ar(1);
   run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Unfortunately the convergence process is not smooth but I think that the information of interest, i.e., difference between times&amp;nbsp;has been obtained&amp;nbsp;(and it is robust between models) with models&amp;nbsp;modified by you suggestions, thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A further improvement could be to analyse all the two response variables (that should be correlated)&amp;nbsp;as a bivariate response; the&amp;nbsp;&amp;nbsp;two variables are correlated and both&amp;nbsp;have multinomial response but one has 4 categories, the other 5.&lt;/P&gt;&lt;P&gt;I have tried&amp;nbsp; a possible analysis for this with responses with each lesser number of categories&amp;nbsp;(I attach the program) but there&amp;nbsp;is no&amp;nbsp;convergence.&lt;/P&gt;&lt;P&gt;Thanks for further help, Fabio&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2016 08:36:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Ordinal-response-Doubly-repeated-measures/m-p/243707#M12845</guid>
      <dc:creator>FabioMC</dc:creator>
      <dc:date>2016-01-15T08:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Ordinal response Doubly repeated measures</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Ordinal-response-Doubly-repeated-measures/m-p/243882#M12864</link>
      <description>&lt;P&gt;Hi Fabio,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The attachment wasn't there, but it is generally a good idea as a last resort, when all else fails, to convert a multinomial (or a pair of multinomials) to a binomial. &amp;nbsp;Have you considered using a different optimizer than the default quasi-Newton? &amp;nbsp;I have had pretty good luck with the ridged Newton-Raphson method for these distributions. &amp;nbsp;To get this add:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;tech=nrridg&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;to the NLOPTIONS statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2016 19:01:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Ordinal-response-Doubly-repeated-measures/m-p/243882#M12864</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2016-01-15T19:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: Ordinal response Doubly repeated measures</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Ordinal-response-Doubly-repeated-measures/m-p/244212#M12885</link>
      <description>&lt;P&gt;Hi Steve,&lt;BR /&gt;If I convert to binary each of the response variables (class variable =&lt;BR /&gt;"variable",having levels "a" and "b") I can get convergence, even with the default&lt;BR /&gt;optimization algotythm.&lt;BR /&gt;Please I would like to know if the following syntax is correct to analyze&lt;BR /&gt;simultaneously (multivariate analysis) the two response variables "a" and "b", each&lt;BR /&gt;being a binary response variable, as said above.&lt;/P&gt;&lt;P&gt;Thanks once again, Fabio&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title 'bivariate analysis with binary response variables ';
proc glimmix data=mydata;
nloptions maxiter=100 ;
   class variable animal  time evaluator;
   model response = variable | time / s dist=binary;
   random int  /s sub=evaluator type=un(1);
   random time /s sub=evaluator*animal type=ar(1);
   lsmeans variable*time /diff;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 18 Jan 2016 13:47:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Ordinal-response-Doubly-repeated-measures/m-p/244212#M12885</guid>
      <dc:creator>FabioMC</dc:creator>
      <dc:date>2016-01-18T13:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Ordinal response Doubly repeated measures</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Ordinal-response-Doubly-repeated-measures/m-p/245436#M12934</link>
      <description>&lt;P&gt;I agree with this approach as the first attempt. &amp;nbsp;The next step would be to figure out a way to incorporate any correlation between the levels of "variable". For an example, take a look at Joint Modeling of Binary and Count Data located here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_glimmix_examples08.htm" target="_self"&gt;http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_glimmix_examples08.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and adapt as needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(And then comes the deluge...)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2016 13:34:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Ordinal-response-Doubly-repeated-measures/m-p/245436#M12934</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2016-01-22T13:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Ordinal response Doubly repeated measures</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Ordinal-response-Doubly-repeated-measures/m-p/245440#M12935</link>
      <description>Thank You Steve, I will try to apply according your suggestions.&lt;BR /&gt;Fabio</description>
      <pubDate>Fri, 22 Jan 2016 14:00:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Ordinal-response-Doubly-repeated-measures/m-p/245440#M12935</guid>
      <dc:creator>FabioMC</dc:creator>
      <dc:date>2016-01-22T14:00:59Z</dc:date>
    </item>
  </channel>
</rss>

