<?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: Longitudinal study - how to plot the outcome with CI against time in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Longitudinal-study-how-to-plot-the-outcome-with-CI-against-time/m-p/952281#M83790</link>
    <description>&lt;P&gt;Thanks for the feedback. OK, if R-side model does not have the Zu matrix, then what is the difference between the mixed effect model and a regular linear model?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS: R-side model: Y = X*beta + error is the same to the regular linear model: Y = X*beta + error. What makes the difference?&lt;/P&gt;</description>
    <pubDate>Mon, 02 Dec 2024 12:22:54 GMT</pubDate>
    <dc:creator>TomHsiung</dc:creator>
    <dc:date>2024-12-02T12:22:54Z</dc:date>
    <item>
      <title>Longitudinal study - how to plot the outcome with CI against time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Longitudinal-study-how-to-plot-the-outcome-with-CI-against-time/m-p/935726#M83564</link>
      <description>&lt;P&gt;Hello, everyone&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Today I read this research paper "Plozasiran (ARO-APOC3) for Severe Hypertriglyceridemia&lt;BR /&gt;The SHASTA-2 Randomized Clinical Trial" (doi:10.1001/jamacardio.2024.0959).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am very interested in the line of Figure 2. According to my understanding, the model used in this research probably is a linear mixed model, and follow-up time is an independent factor. What I am not sure is how the author estimated the confidence interval of the outcomes in Figure 2? Using the linear mixed model? Or other methods?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let me know your ideas. Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Figure 2&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Figure 2" style="width: 800px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98393i226705FCD855BB5B/image-size/large?v=v2&amp;amp;px=999" role="button" title="m_hoi240021f2_1719329878.96552.png" alt="Figure 2" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Figure 2&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jul 2024 03:14:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Longitudinal-study-how-to-plot-the-outcome-with-CI-against-time/m-p/935726#M83564</guid>
      <dc:creator>TomHsiung</dc:creator>
      <dc:date>2024-07-14T03:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: Longitudinal study - how to plot the outcome with CI against time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Longitudinal-study-how-to-plot-the-outcome-with-CI-against-time/m-p/935729#M83565</link>
      <description>&lt;P&gt;Check &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt; blogs:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2016/06/22/sas-effectplot-statement.html" target="_blank"&gt; https://blogs.sas.com/content/iml/2016/06/22/sas-effectplot-statement.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
call streaminit(123);
do subject=1 to 100;
 do time=1 to 10;
   sex=ifc(rand('bern',0.4),'F','M');
   weight=rand('normal',4,100);
   height=rand('normal',0,2);
   output;
 end;
end;
run;

proc mixed data=have;
class  subject sex time;
model weight=height sex time/s;
random int/subject=subject;
repeated time/subject=subject ;
store out=mixedmodel;
run;
proc plm source=mixedmodel;
   effectplot INTERACTION(x=time  sliceby=sex /*plotby=CigsPerDay*/ )/limits connect;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1720928968274.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98394iDE63973B8E647B57/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1720928968274.png" alt="Ksharp_0-1720928968274.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jul 2024 03:49:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Longitudinal-study-how-to-plot-the-outcome-with-CI-against-time/m-p/935729#M83565</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-07-14T03:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: Longitudinal study - how to plot the outcome with CI against time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Longitudinal-study-how-to-plot-the-outcome-with-CI-against-time/m-p/937341#M83575</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;Hello, Ksharp. Thank you for your answer. Would you mind if you tell me whether it is appropriate to use only one of the random and repeated statements?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think either the random or repeated statement can adjust the intra-individual relationship.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jul 2024 06:10:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Longitudinal-study-how-to-plot-the-outcome-with-CI-against-time/m-p/937341#M83575</guid>
      <dc:creator>TomHsiung</dc:creator>
      <dc:date>2024-07-27T06:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Longitudinal study - how to plot the outcome with CI against time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Longitudinal-study-how-to-plot-the-outcome-with-CI-against-time/m-p/937343#M83577</link>
      <description>Yes. You can. But you have to have TIME variable in MODEL to plot the interaction graph.</description>
      <pubDate>Sat, 27 Jul 2024 06:17:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Longitudinal-study-how-to-plot-the-outcome-with-CI-against-time/m-p/937343#M83577</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-07-27T06:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Longitudinal study - how to plot the outcome with CI against time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Longitudinal-study-how-to-plot-the-outcome-with-CI-against-time/m-p/939849#M83616</link>
      <description>&lt;P&gt;One more thing, I am thinking of what the codes should be if the response variable is not continuous (e.g., weight) but binary (e.g., event present). In this case, individuals are repeatedly measured to collect their status of the binary response variable and we would like to have a similar series graph. The x-axis remains the sequence of the repeated measurement, but the y-axis represent the risk (i.e., proportion) for the event to occur, along with its confidence interval.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2024 10:36:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Longitudinal-study-how-to-plot-the-outcome-with-CI-against-time/m-p/939849#M83616</guid>
      <dc:creator>TomHsiung</dc:creator>
      <dc:date>2024-08-19T10:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: Longitudinal study - how to plot the outcome with CI against time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Longitudinal-study-how-to-plot-the-outcome-with-CI-against-time/m-p/940042#M83617</link>
      <description>&lt;P&gt;If your Y variable is a binary variable,you could use PROC GLIMMIX instead of PROC MIXED.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
call streaminit(123);
do subject=1 to 10;
 do time=1 to 5;
   y=rand('bern',0.8);
   sex=ifc(rand('bern',0.4),'F','M');
   weight=rand('normal',4,100);
   height=rand('normal',0,2);
   output;
 end;
end;
run;

/*Take TIME as R side random effect */
proc glimmix data=have;
class  subject sex time;
model y=height sex time/solution dist=binary ;
random int/subject=subject;
random time/subject=subject residual;
store out=mixedmodel;
run;
proc plm source=mixedmodel;
   effectplot INTERACTION(x=time  sliceby=sex /*plotby=CigsPerDay*/ )/limits connect;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1724119270755.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/99450i6288C4D20E8335E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1724119270755.png" alt="Ksharp_0-1724119270755.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;

/*Take TIME as G side random effect */
proc glimmix data=have;
class  subject sex ;
model y=height sex time/solution dist=binary ;
random int time/subject=subject;
store out=mixedmodel;
run;
proc plm source=mixedmodel;
   effectplot slicefit(x=time  sliceby=sex /*plotby=CigsPerDay*/ )/limits ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_1-1724119398058.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/99451i898BA9057C59C18F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_1-1724119398058.png" alt="Ksharp_1-1724119398058.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 02:03:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Longitudinal-study-how-to-plot-the-outcome-with-CI-against-time/m-p/940042#M83617</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-08-20T02:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: Longitudinal study - how to plot the outcome with CI against time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Longitudinal-study-how-to-plot-the-outcome-with-CI-against-time/m-p/940194#M83618</link>
      <description>Thank you for your information.&lt;BR /&gt;&lt;BR /&gt;What will happen if we treat the variable of time as a category variable in the class statement? Here, the time we use is not a continuous variable. Instead, it's a proxy of the number of a series of repeated measurements. For example, we monitor the individuals and we test their blood several times during the following period. Thx.</description>
      <pubDate>Wed, 21 Aug 2024 05:17:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Longitudinal-study-how-to-plot-the-outcome-with-CI-against-time/m-p/940194#M83618</guid>
      <dc:creator>TomHsiung</dc:creator>
      <dc:date>2024-08-21T05:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Longitudinal study - how to plot the outcome with CI against time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Longitudinal-study-how-to-plot-the-outcome-with-CI-against-time/m-p/940201#M83619</link>
      <description>Check my code&lt;BR /&gt;/*Take TIME as R side random effect */&lt;BR /&gt;..........</description>
      <pubDate>Wed, 21 Aug 2024 06:05:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Longitudinal-study-how-to-plot-the-outcome-with-CI-against-time/m-p/940201#M83619</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-08-21T06:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Longitudinal study - how to plot the outcome with CI against time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Longitudinal-study-how-to-plot-the-outcome-with-CI-against-time/m-p/940204#M83620</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;NOTE: An R-side variance component is confounded with the profiled variance.&lt;BR /&gt;NOTE: The GLIMMIX procedure is modeling the probability that inr_attain='1'.&lt;BR /&gt;NOTE: Did not converge.&lt;BR /&gt;NOTE: The GLIMMIX procedure deleted the model item store WORK.MIXEDMODEL because of incomplete information for a subsequent &lt;BR /&gt;analysis.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Problem with the raw data?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 06:29:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Longitudinal-study-how-to-plot-the-outcome-with-CI-against-time/m-p/940204#M83620</guid>
      <dc:creator>TomHsiung</dc:creator>
      <dc:date>2024-08-21T06:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Longitudinal study - how to plot the outcome with CI against time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Longitudinal-study-how-to-plot-the-outcome-with-CI-against-time/m-p/940211#M83621</link>
      <description>Yes.&lt;BR /&gt;NOTE: Did not converge.&lt;BR /&gt;it stands for your model is not right or trust .&lt;BR /&gt;Change your model syntax or Check the data.</description>
      <pubDate>Wed, 21 Aug 2024 07:35:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Longitudinal-study-how-to-plot-the-outcome-with-CI-against-time/m-p/940211#M83621</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-08-21T07:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: Longitudinal study - how to plot the outcome with CI against time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Longitudinal-study-how-to-plot-the-outcome-with-CI-against-time/m-p/943466#M83637</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix data = highlow_1;
class  Patient_ID Gender;
model inr_attain(event = '1') = measure Gender / dist = binary solution;
random intercept / subject = Patient_ID;
*random measure / subject = Patient_ID residual;
store out = mixedmodel;
run;

proc plm source = mixedmodel;
effectplot slicefit(x = measure sliceby = Gender) / limits;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This is the measure as G side random effect and it produces the graph.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Unknown.png" style="width: 640px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/100212i47E9D6C5D78F05B1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Unknown.png" alt="Unknown.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 12:34:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Longitudinal-study-how-to-plot-the-outcome-with-CI-against-time/m-p/943466#M83637</guid>
      <dc:creator>TomHsiung</dc:creator>
      <dc:date>2024-09-11T12:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Longitudinal study - how to plot the outcome with CI against time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Longitudinal-study-how-to-plot-the-outcome-with-CI-against-time/m-p/943469#M83638</link>
      <description>&lt;P&gt;But we would like to treat the variable of measure as a class variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix data = highlow_1;
class  Patient_ID Gender measure;
model inr_attain(event = '1') = measure Gender / dist = binary solution;
random intercept / subject = Patient_ID;
random measure / subject = Patient_ID residual;
store out = mixedmodel;
run;

proc plm source = mixedmodel;
effectplot interaction(x = measure sliceby = Gender) / limits connect;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And this produced the "&lt;SPAN&gt;Did not converge.&lt;/SPAN&gt;" outcome.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 12:38:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Longitudinal-study-how-to-plot-the-outcome-with-CI-against-time/m-p/943469#M83638</guid>
      <dc:creator>TomHsiung</dc:creator>
      <dc:date>2024-09-11T12:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Longitudinal study - how to plot the outcome with CI against time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Longitudinal-study-how-to-plot-the-outcome-with-CI-against-time/m-p/943473#M83639</link>
      <description>&lt;P&gt;The fix should be this,&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix data = highlow_1;
class  Patient_ID Gender measure;
model inr_attain(event = '1') = measure Gender / dist = binary solution;
*random intercept / subject = Patient_ID;
random measure / subject = Patient_ID residual;
store out = mixedmodel;
run;

proc plm source = mixedmodel;
effectplot interaction(x = measure sliceby = Gender) / limits connect;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The graph&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Unknown-2.png" style="width: 640px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/100214iC7DE291498216C35/image-size/large?v=v2&amp;amp;px=999" role="button" title="Unknown-2.png" alt="Unknown-2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 12:47:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Longitudinal-study-how-to-plot-the-outcome-with-CI-against-time/m-p/943473#M83639</guid>
      <dc:creator>TomHsiung</dc:creator>
      <dc:date>2024-09-11T12:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Longitudinal study - how to plot the outcome with CI against time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Longitudinal-study-how-to-plot-the-outcome-with-CI-against-time/m-p/943580#M83641</link>
      <description>Yes. &lt;BR /&gt;That what my code wrote for R side random effect (take variable of measure as a class variable.).</description>
      <pubDate>Thu, 12 Sep 2024 00:35:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Longitudinal-study-how-to-plot-the-outcome-with-CI-against-time/m-p/943580#M83641</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-09-12T00:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Longitudinal study - how to plot the outcome with CI against time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Longitudinal-study-how-to-plot-the-outcome-with-CI-against-time/m-p/945704#M83663</link>
      <description>&lt;P&gt;Thanks for the update and I have additional questions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the function of this line?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*random intercept / subject = Patient_ID;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;With this line un-asterisked, I had the error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;NOTE: An R-side variance component is confounded with the profiled variance.
NOTE: The GLIMMIX procedure is modeling the probability that inr_attain='1'.
NOTE: Did not converge.
NOTE: The GLIMMIX procedure deleted the model item store WORK.MIXEDMODEL because of incomplete information for a subsequent
analysis.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In addition, in proc mixed, the random and repeated statements are used to represent between- and within-individual differences. What about the proc glimmix?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 14:52:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Longitudinal-study-how-to-plot-the-outcome-with-CI-against-time/m-p/945704#M83663</guid>
      <dc:creator>TomHsiung</dc:creator>
      <dc:date>2024-09-30T14:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: Longitudinal study - how to plot the outcome with CI against time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Longitudinal-study-how-to-plot-the-outcome-with-CI-against-time/m-p/945745#M83666</link>
      <description>That is G-Side random effect with SUBJECT_ID variable.&lt;BR /&gt;&lt;BR /&gt;If you can get model convergency you need some skill to adjust parameters of model . Check this:&lt;BR /&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings12/332-2012.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings12/332-2012.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt; in proc mixed, the random and repeated statements model G-Side and R-Side random effect separatedly.&lt;BR /&gt;Correspond to PROC GLIMMIX ,it should be:&lt;BR /&gt;G_Side effect:&lt;BR /&gt;random intercept / subject = Patient_ID;&lt;BR /&gt;&lt;BR /&gt;R_Side effect:&lt;BR /&gt;random visit/ subject = Patient_ID residal ;&lt;BR /&gt;or&lt;BR /&gt;random _residual_/ subject = Patient_ID;&lt;BR /&gt;</description>
      <pubDate>Tue, 01 Oct 2024 01:42:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Longitudinal-study-how-to-plot-the-outcome-with-CI-against-time/m-p/945745#M83666</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-10-01T01:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Longitudinal study - how to plot the outcome with CI against time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Longitudinal-study-how-to-plot-the-outcome-with-CI-against-time/m-p/948872#M83730</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I spent a couple of weeks learning the general linear mixed model. The model is in the form of the formula in the screenshot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We can use the maximum likelihood method or matrix of variance-covariance to solve the point and interval estimation of the regression coefficients. What I don't understand is: What is the difference between the G- and R-side models? Both belong to the general linear mixed model, so they have the same model formula.&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="Screenshot 2024-10-24 at 8.01.49 PM.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/101762i1B3A8E56B0E2C959/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-10-24 at 8.01.49 PM.png" alt="Screenshot 2024-10-24 at 8.01.49 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2024 12:08:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Longitudinal-study-how-to-plot-the-outcome-with-CI-against-time/m-p/948872#M83730</guid>
      <dc:creator>TomHsiung</dc:creator>
      <dc:date>2024-10-24T12:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: Longitudinal study - how to plot the outcome with CI against time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Longitudinal-study-how-to-plot-the-outcome-with-CI-against-time/m-p/948992#M83732</link>
      <description>&lt;P&gt;Ou. That is a large topic. I think &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13758"&gt;@lvm&lt;/a&gt;&amp;nbsp; &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15363"&gt;@SteveDenham&lt;/a&gt;&amp;nbsp;&amp;nbsp;could give you more details about it.&lt;BR /&gt;G-side random effect is for estimate coefficient.&lt;BR /&gt;For example : if you take SEX as &lt;STRONG&gt;fixed and random&lt;/STRONG&gt; effect, &lt;BR /&gt;then the actually coefficient = coefficient (of fixed effect) +coefficient (of random effect) .&lt;BR /&gt;here coefficient (of fixed effect) is the same for Both Male and Female,&lt;BR /&gt;while coefficient (of random effect) is different for Male and Female.&lt;BR /&gt;&lt;BR /&gt;The horizontal level/direction has random coefficient.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;R-side random is design for &lt;STRONG&gt;RESIDUAL term&lt;/STRONG&gt;. &lt;BR /&gt;For examle : if you take VISIT as random effect ,the residual from each VISIT is diffent/random.&lt;BR /&gt;&lt;BR /&gt;The vertical level/direction has random coefficient.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Check resources for more info:&lt;BR /&gt;&lt;A href="https://stats.oarc.ucla.edu/other/mult-pkg/introduction-to-generalized-linear-mixed-models/" target="_blank" rel="noopener"&gt;https://stats.oarc.ucla.edu/other/mult-pkg/introduction-to-generalized-linear-mixed-models/&lt;/A&gt; &lt;BR /&gt;&lt;A href="https://support.sas.com/kb/37/109.html" target="_blank" rel="noopener"&gt;https://support.sas.com/kb/37/109.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://support.sas.com/kb/37/110.html" target="_blank" rel="noopener"&gt;https://support.sas.com/kb/37/110.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/iml/2019/12/03/longitudinal-data-response-profile-model.html" target="_blank" rel="noopener"&gt;https://blogs.sas.com/content/iml/2019/12/03/longitudinal-data-response-profile-model.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/iml/2019/12/05/longitudinal-data-mixed-model.html" target="_blank" rel="noopener"&gt;https://blogs.sas.com/content/iml/2019/12/05/longitudinal-data-mixed-model.html&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2024 01:32:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Longitudinal-study-how-to-plot-the-outcome-with-CI-against-time/m-p/948992#M83732</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-10-25T01:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Longitudinal study - how to plot the outcome with CI against time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Longitudinal-study-how-to-plot-the-outcome-with-CI-against-time/m-p/949466#M83747</link>
      <description>&lt;P&gt;I realize this sort of jumping into the middle but I would suggest looking at the output file, especially the iteration history. If the history stops at 20 iterations with no other messages, then you have run up against the default maximum. If the history keeps rolling along and eventually has some other message, then there are some things to try. For a first attempt, I would suggest adding the following NLOPTIONS statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;nloptions maxiter=1000 tech=nrridg;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;For R-side models and a binary distribution, the ridged Newton-Raphson method often works better than the default quasi-Newton (QUANEW).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 12:42:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Longitudinal-study-how-to-plot-the-outcome-with-CI-against-time/m-p/949466#M83747</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2024-10-30T12:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Longitudinal study - how to plot the outcome with CI against time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Longitudinal-study-how-to-plot-the-outcome-with-CI-against-time/m-p/949470#M83748</link>
      <description>Thanks for the suggestion, sir. But I think I must first understand the G- and R-side models first. I know understand the formula of a general linear mixed model but the textbook I read does not discuss this topic in detail.</description>
      <pubDate>Wed, 30 Oct 2024 13:21:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Longitudinal-study-how-to-plot-the-outcome-with-CI-against-time/m-p/949470#M83748</guid>
      <dc:creator>TomHsiung</dc:creator>
      <dc:date>2024-10-30T13:21:22Z</dc:date>
    </item>
  </channel>
</rss>

