<?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: How to incorporate correlation between random error (epsilon) in proc nlmixed joint MMRM model? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-correlation-between-random-error-epsilon-in/m-p/887107#M43906</link>
    <description>&lt;P&gt;If you wanted to specify a UN type of covariance structure for your two random effects, you might use something like the following --&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;RANDOM z1 z2 ~ NORMAL([0,0],[rhoe1,rhob,rhoe2]) SUBJECT=id;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;And&amp;nbsp;sigma2 is already your variance for the normal distribution. I am not sure exactly what rhoe measures. There is no "error" variance for an ordinal outcome, as far as I know.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jill&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 31 Jul 2023 14:27:35 GMT</pubDate>
    <dc:creator>jiltao</dc:creator>
    <dc:date>2023-07-31T14:27:35Z</dc:date>
    <item>
      <title>How to incorporate correlation between random error (epsilon) in proc nlmixed joint MMRM model?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-correlation-between-random-error-epsilon-in/m-p/886937#M43875</link>
      <description>&lt;P&gt;Hi, if I have a correlated longitudinal model with one continuous outcome and one ordinal outcome (y2it*, using probit normal to define category from latent normal variale y2it), say y1it = Xalphai + b1i + epsilon_{1it}, y2it (latent normal) = Xbetai + b2i+epsilon_{2it}, (b1i,b2i) are bivariate normal distribution, and (eps_{1it},eps_{2it})are random error that also have bivariate normal distribution (correlated). (the variance parameter is&amp;nbsp; (sigcon, rhoe*sigcon*sigord, sigord)). How should I specify the "&lt;STRONG&gt;rhoe&lt;/STRONG&gt;" ? I attach my SAS code here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC NLMIXED data=auto2 qpoints=10 tech = NMSIMP corr ecorr;&lt;BR /&gt;PARMS beta0=6 beta1=-3 beta2=0 alpha0=25&lt;BR /&gt;alpha1=-10 alpha2=-1 sigcon = 2 sigor = 3 rhob=0.3 i1 = 2 i2=2&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;rhoe = 0.4&lt;/STRONG&gt;;&lt;BR /&gt;bounds i1 &amp;gt; 0, i2 &amp;gt; 0;&lt;BR /&gt;if variable="continuous" then do;&lt;BR /&gt;pi=constant("pi");&lt;BR /&gt;m1=alpha0+alpha1*trt+alpha2*time+z1;&lt;BR /&gt;LL1=((-0.5)*log(2*pi*sigcon*sigcon)-((value1-m1)**2)/&lt;BR /&gt;(2*sigcon*sigcon));&lt;BR /&gt;END;&lt;BR /&gt;if variable="ordinal" then do;&lt;BR /&gt;eta = beta0+beta1*trt+beta2*time+z2;&lt;BR /&gt;if (value1=1) then p = probnorm(-eta/sigor);&lt;BR /&gt;else if (value1=2) then&lt;BR /&gt;p = probnorm((i1-eta)/sigor) - probnorm(-eta/sigor);&lt;BR /&gt;else if (value1=3) then&lt;BR /&gt;p = probnorm((i1+i2-eta)/sigor) - probnorm((i1-eta)/sigor);&lt;BR /&gt;else p = 1 - probnorm((i1+i2-eta)/sigor);&lt;BR /&gt;if (p &amp;gt; 1e-8) then LL2 = log(p);&lt;BR /&gt;else LL2 = -1e20;&lt;BR /&gt;END;&lt;BR /&gt;LL=LL1+LL2;&lt;BR /&gt;MODEL value1 ~ GENERAL(LL);&lt;BR /&gt;RANDOM z1 z2 ~ NORMAL([0,0],[1,rhob,1]) SUBJECT=id;&lt;BR /&gt;estimate "sigma2" sigor*sigor;&lt;BR /&gt;ods output ParameterEstimates=pars;&lt;BR /&gt;ods output FitStatistics=aic;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is where should I specify rhoe here? I thought it should be similar like type = "un"...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BTW if the error "&amp;nbsp;No valid parameter points were found" happens, is it only because the bad starting values? Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jul 2023 03:28:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-correlation-between-random-error-epsilon-in/m-p/886937#M43875</guid>
      <dc:creator>lcw68</dc:creator>
      <dc:date>2023-07-29T03:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to incorporate correlation between random error (epsilon) in proc nlmixed joint MMRM model?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-correlation-between-random-error-epsilon-in/m-p/886946#M43876</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is MMRM in your subject line?&lt;/P&gt;
&lt;UL class="lia-list-style-type-square"&gt;
&lt;LI&gt;&lt;STRONG&gt;M&lt;/STRONG&gt;ixed-Effects &lt;STRONG&gt;M&lt;/STRONG&gt;odel for &lt;STRONG&gt;R&lt;/STRONG&gt;epeated &lt;STRONG&gt;M&lt;/STRONG&gt;easures&amp;nbsp; &amp;nbsp; or&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;M&lt;/STRONG&gt;arginal &lt;STRONG&gt;M&lt;/STRONG&gt;odels for &lt;STRONG&gt;R&lt;/STRONG&gt;epeated &lt;STRONG&gt;M&lt;/STRONG&gt;easurements&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I cannot answer your main question (off the top of my head), but about those joint models with PROC NLMIXED you can find &lt;STRONG&gt;a lot&lt;/STRONG&gt; about that on the internet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for the answer to your side question (&lt;SPAN&gt;proc nlmixed - No valid parameter points were found&lt;/SPAN&gt;&lt;SPAN&gt;)&amp;nbsp;&lt;/SPAN&gt;:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The error message of&lt;/SPAN&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;ERROR: No valid parameter points were found.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;SPAN&gt;might indicate that the initial value for the parameters might be unreasonable, or the parameterization of your model might be problematic.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jul 2023 08:59:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-correlation-between-random-error-epsilon-in/m-p/886946#M43876</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-07-29T08:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to incorporate correlation between random error (epsilon) in proc nlmixed joint MMRM model?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-correlation-between-random-error-epsilon-in/m-p/886965#M43879</link>
      <description>&lt;P&gt;Hi, thanks for your reply. It's&amp;nbsp;&lt;STRONG&gt;M&lt;/STRONG&gt;&lt;SPAN&gt;ixed-Effects&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;M&lt;/STRONG&gt;&lt;SPAN&gt;odel for&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;R&lt;/STRONG&gt;&lt;SPAN&gt;epeated&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;M&lt;/STRONG&gt;&lt;SPAN&gt;easures&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I did find many joint model examples but non of them include correlated random error model. So I don't know how to include it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response for the second question!&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jul 2023 15:26:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-correlation-between-random-error-epsilon-in/m-p/886965#M43879</guid>
      <dc:creator>lcw68</dc:creator>
      <dc:date>2023-07-29T15:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to incorporate correlation between random error (epsilon) in proc nlmixed joint MMRM model?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-correlation-between-random-error-epsilon-in/m-p/887004#M43885</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For this type of models I always turn to Geert and Geert (MOLENBERGHS, Geert &amp;amp; VERBEKE, Geert).&lt;/P&gt;
&lt;P&gt;They are also compatriots of mine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See this article from 2015 (first author is IVANOVA, Anna) :&lt;/P&gt;
&lt;P&gt;Mixed model approaches for joint modeling of different types of responses&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentserver.uhasselt.be/bitstream/1942/20856/1/463a.pdf" target="_blank" rel="noopener"&gt;https://documentserver.uhasselt.be/bitstream/1942/20856/1/463a.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See Appendix B on SAS Implementation.&lt;/P&gt;
&lt;P&gt;As an example, the authors present the routines for the case of a joint model for continuous-ordinal responses&lt;BR /&gt;with different random effects, some of which are correlated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;
&lt;DIV id="ConnectiveDocSignExtentionInstalled" data-extension-version="1.0.4"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Sun, 30 Jul 2023 10:08:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-correlation-between-random-error-epsilon-in/m-p/887004#M43885</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-07-30T10:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to incorporate correlation between random error (epsilon) in proc nlmixed joint MMRM model?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-correlation-between-random-error-epsilon-in/m-p/887024#M43890</link>
      <description>Thanks very much, I'll read it through</description>
      <pubDate>Sun, 30 Jul 2023 18:56:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-correlation-between-random-error-epsilon-in/m-p/887024#M43890</guid>
      <dc:creator>lcw68</dc:creator>
      <dc:date>2023-07-30T18:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to incorporate correlation between random error (epsilon) in proc nlmixed joint MMRM model?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-correlation-between-random-error-epsilon-in/m-p/887026#M43891</link>
      <description>&lt;P&gt;Hi Koen, I read the paper and it also gives an example that only b (random effect) are correlated, but sigma (std of random error epsilon) are still independent. But thanks for your help!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jul 2023 19:55:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-correlation-between-random-error-epsilon-in/m-p/887026#M43891</guid>
      <dc:creator>lcw68</dc:creator>
      <dc:date>2023-07-30T19:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to incorporate correlation between random error (epsilon) in proc nlmixed joint MMRM model?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-correlation-between-random-error-epsilon-in/m-p/887029#M43892</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/446313"&gt;@lcw68&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tomorrow (Monday) is working day again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/60873"&gt;@jiltao&lt;/a&gt;&amp;nbsp;or&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/92458"&gt;@StatsMan&lt;/a&gt;&amp;nbsp;might be able to help you out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jul 2023 20:14:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-correlation-between-random-error-epsilon-in/m-p/887029#M43892</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-07-30T20:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to incorporate correlation between random error (epsilon) in proc nlmixed joint MMRM model?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-correlation-between-random-error-epsilon-in/m-p/887034#M43893</link>
      <description>&lt;P&gt;Hello, I found "Error:&amp;nbsp;&lt;SPAN&gt;No valid parameter points were found" still happens.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tried to run the two marginal model for starting values, the code is here: (autocon contains continuous outcome, autoord contains ordinal outcome)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;proc nlmixed data=autocon corr ecorr;&lt;BR /&gt;parms alpha1=0.2 alpha2=0.3 sigcon = 1 sd = 1;&lt;BR /&gt;pi=constant("pi");&lt;BR /&gt;m1=alpha0+alpha1*trt+alpha2*time+z1;&lt;BR /&gt;LL1=((-0.5)*log(2*pi*sigcon*sigcon)-((value-m1)**2)/&lt;BR /&gt;(2*sigcon*sigcon));&lt;BR /&gt;model value ~ general(LL1);&lt;BR /&gt;random z1 ~ normal(0,sd*sd) subject=id;&lt;BR /&gt;ods output ParameterEstimates=pars;&lt;BR /&gt;ods output FitStatistics=aic;&lt;BR /&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;proc nlmixed data=autoord corr ecorr;&lt;BR /&gt;&lt;BR /&gt;parms b0=0 b1=0 b2=0 sd=1 i1=1 i2=1 i3 =1 sigor = 2;&lt;BR /&gt;bounds i1 &amp;gt; 0, i2 &amp;gt; 0, i3&amp;gt;0;&lt;BR /&gt;eta = b0 + b1*trt + b2*time + u;&lt;BR /&gt;if (value=1) then p = probnorm((-eta)/sigor);&lt;BR /&gt;else if (value=2) then&lt;BR /&gt;p = probnorm((i1-eta)/sigor) - probnorm((-eta)/sigor);&lt;BR /&gt;else if (value=3) then&lt;BR /&gt;p = probnorm((i1+i2-eta)/sigor) - probnorm((i1-eta)/sigor);&lt;BR /&gt;else if (value=4) then&lt;BR /&gt;p = probnorm((i1+i2+i3-eta)/sigor) - probnorm((i1+i2-eta)/sigor);&lt;BR /&gt;else p = 1 - probnorm((i1+i2+i3-eta)/sigor);&lt;BR /&gt;if (p &amp;gt; 1e-8) then ll = log(p);&lt;BR /&gt;else ll = -1e20;&lt;BR /&gt;model value ~ general(ll);&lt;BR /&gt;random u ~ normal(0,sd*sd) subject=id;&lt;BR /&gt;&lt;BR /&gt;estimate 'thresh2' i1;&lt;BR /&gt;estimate 'thresh3' i1 + i2;&lt;BR /&gt;estimate 'icc' sd*sd/(1+sd*sd);&lt;BR /&gt;ods output ParameterEstimates=pars;&lt;BR /&gt;ods output FitStatistics=aic;&lt;BR /&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I can obtain the results with warnings:&amp;nbsp;WARNING: The final Hessian matrix is full rank but has at least one negative eigenvalue. Second-order optimality condition&lt;BR /&gt;violated.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But when I applied the estimated value as starting values for my joint model, I still got the same error.&amp;nbsp; I wonder if anybody know what should I do next, how to adjust it? (Since I simulate data based on my joint model, I believe using incorrect model is not a problem) Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jul 2023 21:22:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-correlation-between-random-error-epsilon-in/m-p/887034#M43893</guid>
      <dc:creator>lcw68</dc:creator>
      <dc:date>2023-07-30T21:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to incorporate correlation between random error (epsilon) in proc nlmixed joint MMRM model?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-correlation-between-random-error-epsilon-in/m-p/887037#M43894</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/446313"&gt;@lcw68&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When inserting SAS-code in your post , it's better to click the running man icon in the toolbar (running man in squared box with bullet in lower-right corner) ... then paste your code in the empty box that pops up.&lt;/P&gt;
&lt;P&gt;Lay-out, coloring and formatting of your code is optimally preserved that way&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With regard to starting values for the parameters.&lt;BR /&gt;You can start&amp;nbsp;with using the default starting values (No PARMS statement needed!).&lt;/P&gt;
&lt;P&gt;When you want to "help" the optimizer, ... this should help when specifying starting values for the parameters for PARMS statement in NLMIXED procedure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL class="lia-list-style-type-square"&gt;
&lt;LI&gt;Reduced models: A way to choose initial parameters for a mixed model &lt;BR /&gt;By Rick Wicklin on The DO Loop June 27, 2018 &lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/iml/2018/06/27/reduced-choose-parameters-mixed-model.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2018/06/27/reduced-choose-parameters-mixed-model.html&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Use a grid search to find initial parameter values for regression models in SAS &lt;BR /&gt;By Rick Wicklin on The DO Loop June 25, 2018&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/iml/2018/06/25/grid-search-for-parameters-sas.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2018/06/25/grid-search-for-parameters-sas.html&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;The method of moments: A smart way to choose initial parameters for MLE &lt;BR /&gt;By Rick Wicklin on The DO Loop November 27, 2017&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/iml/2017/11/27/method-of-moments-estimates-mle.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2017/11/27/method-of-moments-estimates-mle.html&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;The DOLIST syntax: Specify a list of numerical values in SAS &lt;BR /&gt;By Rick Wicklin on The DO Loop January 18, 2021&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/iml/2021/01/18/the-dolist-syntax-specify-a-list-of-numerical-values-in-sas.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2021/01/18/the-dolist-syntax-specify-a-list-of-numerical-values-in-sas.html&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Good luck,&lt;BR /&gt;Koen&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jul 2023 21:59:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-correlation-between-random-error-epsilon-in/m-p/887037#M43894</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-07-30T21:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to incorporate correlation between random error (epsilon) in proc nlmixed joint MMRM model?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-correlation-between-random-error-epsilon-in/m-p/887060#M43895</link>
      <description>&lt;P&gt;Thank you for your prompt help! These provides lots of different ideas. I was wondering if this warning matters when I run only the ordinal model separately, it shows "WARNING: The final Hessian matrix is full rank but has at least one negative eigenvalue. Second-order optimality condition violated." Seems for ordinal model only, the estimation result could not give the std error for each estimated parameter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried different kind of starting values, tried to reduce the number of parameters (let threshold for ordinal variable be constant, even std deviation parameter be constant), and neither of them work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also found no matter I changed the initial parameter, the negative LL always keep the same. May this be a problem?&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="lcw68_0-1690785329106.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/86255iC84BDB0E05A0B7AE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lcw68_0-1690785329106.png" alt="lcw68_0-1690785329106.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 06:38:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-correlation-between-random-error-epsilon-in/m-p/887060#M43895</guid>
      <dc:creator>lcw68</dc:creator>
      <dc:date>2023-07-31T06:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to incorporate correlation between random error (epsilon) in proc nlmixed joint MMRM model?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-correlation-between-random-error-epsilon-in/m-p/887074#M43896</link>
      <description>&lt;P&gt;When you get the warnings that you report, it might be the case that the model is misspecified. Can you say, in words, what type of model you are trying to fit for the ordinal response? Have you double-checked that your implementation of the models (via the LL) are implemented correctly?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In an excellent paper, Robin High (2012) discusses how to fit various kinds of ordinal response models by using PROC LNMIXED. If you haven't seen his paper, I recommend it:&amp;nbsp;&lt;A href="https://www.mwsug.org/proceedings/2012/SA/MWSUG-2012-SA09.pdf" target="_self"&gt;Models for Ordinal Response Data&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 10:03:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-correlation-between-random-error-epsilon-in/m-p/887074#M43896</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2023-07-31T10:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to incorporate correlation between random error (epsilon) in proc nlmixed joint MMRM model?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-correlation-between-random-error-epsilon-in/m-p/887076#M43897</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/446313"&gt;@lcw68&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;wrote ... (ordinal) model might be misspecified.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="cs4FC6FE93"&gt;Another common reason for t&lt;/SPAN&gt;&lt;SPAN class="cs4FC6FE93"&gt;his type of warning messages in the Log for PROC NLMIXED --&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;FONT color="#008000"&gt;&lt;SPAN class="cs1C9D0436"&gt;WARNING: The final Hessian matrix is full rank but has at least one negative eigenvalue.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;FONT color="#008000"&gt;&lt;SPAN class="cs1C9D0436"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Second-order optimality condition violated.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="cs4FC6FE93"&gt;is scaling issues. &lt;BR /&gt;For example, when the parameter estimates are on very different scales. Rescaling (i.e. changing order of magnitude) might help. It definitely helps if the parameters are on similar scales!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;BR, Koen&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 10:25:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-correlation-between-random-error-epsilon-in/m-p/887076#M43897</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-07-31T10:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to incorporate correlation between random error (epsilon) in proc nlmixed joint MMRM model?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-correlation-between-random-error-epsilon-in/m-p/887099#M43903</link>
      <description>&lt;P&gt;Hi, I use probit normal model to generate ordinal data, it's like y=mu+b+epsilon, y* =0*I(y&amp;lt;0)+ 1*I(0&amp;lt;=y&amp;lt;c1)+2*I(c1&amp;lt;=y&amp;lt;c2)+...+4*I(y1&amp;gt; c3). The estimation result I got from the code below is very close to the true parameter I set, everything seems good except for a warning. After that, when I tried to fit joint model with continuous outcome together, it always shows no valid parameter.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc nlmixed data=autoord corr ecorr;
   parms b0=0 b1=0 b2=0 sd=1 i1=1 i2=1 i3 =1 sigor = 2;
   bounds i1 &amp;gt; 0, i2 &amp;gt; 0, i3&amp;gt;0;
   eta = b0 + b1*trt + b2*time + u;
   if (value=1) then p = probnorm((-eta)/sigor);
   else if (value=2) then
      p = probnorm((i1-eta)/sigor) - probnorm((-eta)/sigor);
   else if (value=3) then
      p = probnorm((i1+i2-eta)/sigor) - probnorm((i1-eta)/sigor);
  else if (value=4) then
      p = probnorm((i1+i2+i3-eta)/sigor) - probnorm((i1+i2-eta)/sigor);
   else p = 1 - probnorm((i1+i2+i3-eta)/sigor);
   if (p &amp;gt; 1e-8) then ll = log(p);
   else ll = -1e20;
   model value ~ general(ll);
   random u ~ normal(0,sd*sd) subject=id;
 
   estimate 'thresh2' i1;
   estimate 'thresh3' i1 + i2;
   estimate 'icc' sd*sd/(1+sd*sd);
   ods output ParameterEstimates=pars;
ods output FitStatistics=aic;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am sorry that I asked many times about it,&amp;nbsp; but I am very confused and struggled with that.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 13:47:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-correlation-between-random-error-epsilon-in/m-p/887099#M43903</guid>
      <dc:creator>lcw68</dc:creator>
      <dc:date>2023-07-31T13:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to incorporate correlation between random error (epsilon) in proc nlmixed joint MMRM model?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-correlation-between-random-error-epsilon-in/m-p/887103#M43904</link>
      <description>&lt;P&gt;It sounds like you are running this code on simulated data that you believe is generated from this model. Could you share the simulation code you are using?&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 14:09:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-correlation-between-random-error-epsilon-in/m-p/887103#M43904</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2023-07-31T14:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to incorporate correlation between random error (epsilon) in proc nlmixed joint MMRM model?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-correlation-between-random-error-epsilon-in/m-p/887107#M43906</link>
      <description>&lt;P&gt;If you wanted to specify a UN type of covariance structure for your two random effects, you might use something like the following --&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;RANDOM z1 z2 ~ NORMAL([0,0],[rhoe1,rhob,rhoe2]) SUBJECT=id;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;And&amp;nbsp;sigma2 is already your variance for the normal distribution. I am not sure exactly what rhoe measures. There is no "error" variance for an ordinal outcome, as far as I know.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jill&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 14:27:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-correlation-between-random-error-epsilon-in/m-p/887107#M43906</guid>
      <dc:creator>jiltao</dc:creator>
      <dc:date>2023-07-31T14:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to incorporate correlation between random error (epsilon) in proc nlmixed joint MMRM model?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-correlation-between-random-error-epsilon-in/m-p/887109#M43907</link>
      <description>&lt;P&gt;Sure, I write the simulation in R since I also need to make calculations to obtain the true parameter. X1 is the dataset I input to SAS.&lt;/P&gt;&lt;LI-CODE lang="r"&gt;cind = c(0,c2,c2+2,c2+4) ##threshold
varb &amp;lt;- matrix(c(sigma.b0^2,rhob*sigma.b0*sigma.b1,rhob*sigma.b0*sigma.b1,sigma.b1^2),nrow=2)
vare &amp;lt;- matrix(c(sigma.e0^2,rhoe*sigma.e0*sigma.e1,rhoe*sigma.e0*sigma.e1,sigma.e1^2),nrow=2)
k=2 ### 2 timepoints right now
n = 100 ##n samples
set.seed(i)
        trt.pure = rbinom(n,1,2/3)
        trt = rep(trt.pure,each=k)
        time = rep(0:(k-1),times = n)
        id = 1:n
        X = data.frame(trt = trt, time = time/(k-1), id = rep(id,each=k))
        mu1 = model.matrix(~time+trt,X)%*%c(alpha0,alpha1,alpha2)
        mu2 = model.matrix(~time+trt,X)%*%c(beta0,beta1,beta2)
        set.seed(i)
        b &amp;lt;- rmvnorm(n,mean = c(0,0),sigma = varb)
        eps &amp;lt;- rmvnorm(n*k,mean = c(0,0),sigma = vare)
       
        y0 = mu1+ rep(b[,1],each=k) + eps[,1]
        y1 = mu2+ rep(b[,2],each=k) + eps[,2]
       
        y0 = floor(y0)
        y0[y0&amp;gt;upper.limit] = upper.limit
        y0[y0&amp;lt;lower.limit] = lower.limit
        y1.ord &amp;lt;- dplyr::case_when(y1 &amp;lt; cind[1] ~"0",
                                   y1&amp;gt;=cind[1] &amp;amp; y1&amp;lt; cind[2] ~ "1",
                                   y1&amp;gt;=cind[2] &amp;amp; y1&amp;lt; cind[3] ~ "2",
                                   y1&amp;gt;=cind[3] &amp;amp; y1&amp;lt; cind[4] ~ "3",
                                   y1&amp;gt;=cind[4] ~"4")
        X$continuous =y0
        X$ordinal = as.numeric(y1.ord)+1
        X1 = reshape2::melt(X,id.vars = c("trt","time","id"))
save(X1,file="....")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 14:33:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-correlation-between-random-error-epsilon-in/m-p/887109#M43907</guid>
      <dc:creator>lcw68</dc:creator>
      <dc:date>2023-07-31T14:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to incorporate correlation between random error (epsilon) in proc nlmixed joint MMRM model?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-correlation-between-random-error-epsilon-in/m-p/887111#M43908</link>
      <description>&lt;P&gt;Hi, thanks for your reply, what I mean is that (b1, b2) = (z1,z2) ~ N((0,0),(sb1^2, rhob*sb1*sb2,sb2^2)), (eps1, eps2) ~&amp;nbsp;&amp;nbsp;N((0,0),(se1^2, rhoe*se1*se2,se2^2)).&lt;/P&gt;&lt;P&gt;rhoe measures the correlation between two outcomes in each time points (within one subject), and I found I can't find a place to put rhoe in the code of proc nlmixed joint model.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 14:49:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-correlation-between-random-error-epsilon-in/m-p/887111#M43908</guid>
      <dc:creator>lcw68</dc:creator>
      <dc:date>2023-07-31T14:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to incorporate correlation between random error (epsilon) in proc nlmixed joint MMRM model?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-correlation-between-random-error-epsilon-in/m-p/887114#M43909</link>
      <description>&lt;P&gt;PROC NLMIXED cannot model correlated errors. It assumes the errors are independent.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 15:05:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-correlation-between-random-error-epsilon-in/m-p/887114#M43909</guid>
      <dc:creator>jiltao</dc:creator>
      <dc:date>2023-07-31T15:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to incorporate correlation between random error (epsilon) in proc nlmixed joint MMRM model?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-correlation-between-random-error-epsilon-in/m-p/887116#M43911</link>
      <description>&lt;P&gt;Oh I see, that's what I want to confirm. Then in SAS I wonder if you know what kind of procedure could incoporate correlated random effect and correlated error at the same time.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 15:11:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-correlation-between-random-error-epsilon-in/m-p/887116#M43911</guid>
      <dc:creator>lcw68</dc:creator>
      <dc:date>2023-07-31T15:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to incorporate correlation between random error (epsilon) in proc nlmixed joint MMRM model?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-correlation-between-random-error-epsilon-in/m-p/887118#M43912</link>
      <description>&lt;P&gt;You can use PROC GLIMMIX with the G-side random effect and R-side random effect to model both correlations. If you have two response variables with different distributions, you can use DIST=BYOBS() in the MODEL statement for that. Here is an example --&amp;nbsp;&lt;A href="https://go.documentation.sas.com/doc/en/statcdc/14.3/statug/statug_glimmix_examples08.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/statcdc/14.3/statug/statug_glimmix_examples08.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Jill&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 15:27:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-correlation-between-random-error-epsilon-in/m-p/887118#M43912</guid>
      <dc:creator>jiltao</dc:creator>
      <dc:date>2023-07-31T15:27:39Z</dc:date>
    </item>
  </channel>
</rss>

