<?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: The standard error of covariance parameter can't be estimated in Glimmix in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/The-standard-error-of-covariance-parameter-can-t-be-estimated-in/m-p/895399#M44392</link>
    <description>&lt;P&gt;Thank you very much for the reply!&amp;nbsp; i'm not sure if i fully understand what you mean because the knowledge about R/G side was learnt months ago... anyway, i will learn them again and come back.&lt;/P&gt;&lt;P&gt;Could you have a look on the below picture? it explained why CS was choosen as the covariance structure for eyes, it was reasonable for me when i first see it, so i followed the slids and choosed CS as the&amp;nbsp; covariance structure, but then...... &lt;STRONG&gt;do you think the clarification on the slids is correct?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cs.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88218i34C633AE843F46C0/image-size/large?v=v2&amp;amp;px=999" role="button" title="cs.png" alt="cs.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 22 Sep 2023 08:29:05 GMT</pubDate>
    <dc:creator>Yan_vivien</dc:creator>
    <dc:date>2023-09-22T08:29:05Z</dc:date>
    <item>
      <title>The standard error of covariance parameter can't be estimated in Glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/The-standard-error-of-covariance-parameter-can-t-be-estimated-in/m-p/892253#M44217</link>
      <description>&lt;P&gt;All the SAS output seems normal, and there is no warning or error in log, the estimate of covariance parameter can be obtained when the type is compound symmetry,&amp;nbsp;but the&amp;nbsp;standard error&amp;nbsp; is not estimable, I want to know why and is it a critical issue?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pic.PNG" style="width: 348px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/87493i489A8F2AF9DCA9FE/image-size/large?v=v2&amp;amp;px=999" role="button" title="pic.PNG" alt="pic.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;For some confidential reason, i can't show the data, but i can give a brife introduction to the data:&lt;/P&gt;&lt;P&gt;the data is create for efficacy analyses for 2 drugs (0.01%&amp;nbsp; 0.02%) vs&amp;nbsp;placebo (represented by variable trt01pn), there are several repeated assessments (represented by variable&amp;nbsp;avisitn1) for each subject, and at each assessment time point, 2 results will be obtained from 2 eyes(left or right, represented by variable oelat) respectively,&amp;nbsp; the response result to drug is&amp;nbsp;success or failure(represented by variable response1), other variables used in model are covariates (like&amp;nbsp;randage AMETROPI).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And here is the SAS code i use:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;ods output estimates=out_est.;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;proc glimmix data=data empirical method=quad;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;class subjid trt01pn(ref='3') avisitn1(ref='6') oelat randage AMETROPI;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;model response1= trt01pn avisitn1 oelat randage AMETROPI trt01pn*avisitn1 / dist=binary&amp;nbsp; link=logit solution or;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;nloptions&amp;nbsp; maxiter=200;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;random intercept / subject=subjid type=vc;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;random intercept / subject=oelat(subjid) type=cs;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;estimate '0.01% vs placebo at M12&amp;nbsp;' trt01pn 1 0 -1 trt01pn*avisitn1 1 0 0 0 -1 0/ exp cl;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;estimate '0.02% vs placebo at M12' trt01pn 0 1 -1 trt01pn*avisitn1 0 0 1 0 -1 0/ exp cl;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;estimate '0.02% vs 0.01% at M12' trt01pn -1 1 0 trt01pn*avisitn1 -1 0 1 0 0 0/ exp cl;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;run;&lt;/P&gt;&lt;P&gt;Thank you very much for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp; &amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15363"&gt;@SteveDenham&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 12:12:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/The-standard-error-of-covariance-parameter-can-t-be-estimated-in/m-p/892253#M44217</guid>
      <dc:creator>Yan_vivien</dc:creator>
      <dc:date>2023-09-01T12:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: The standard error of covariance parameter can't be estimated in Glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/The-standard-error-of-covariance-parameter-can-t-be-estimated-in/m-p/892291#M44218</link>
      <description>&lt;P&gt;If you want to correlate observations from the same subject and from the same eye within a subject, then you need&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;random int / subject=subjid;
random int / subject=oelat(subjid);

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The CS is overfitting this model and is not needed if you want correlation amongst the subjects and eyes within a subject. Note that you will need multiple observations on each eye for this to work. From your description, I think you have that ... but not 100% sure.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 13:01:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/The-standard-error-of-covariance-parameter-can-t-be-estimated-in/m-p/892291#M44218</guid>
      <dc:creator>StatsMan</dc:creator>
      <dc:date>2023-09-01T13:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: The standard error of covariance parameter can't be estimated in Glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/The-standard-error-of-covariance-parameter-can-t-be-estimated-in/m-p/892311#M44220</link>
      <description>&lt;P&gt;This statement --&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;random intercept / subject=oelat(subjid) type=cs;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;models a random intercept. So for each subject, there is only one random effect -- intercept.&amp;nbsp; TYPE=CS is too much. Use TYPE=VC for the random intercept.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jill&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 14:16:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/The-standard-error-of-covariance-parameter-can-t-be-estimated-in/m-p/892311#M44220</guid>
      <dc:creator>jiltao</dc:creator>
      <dc:date>2023-09-01T14:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: The standard error of covariance parameter can't be estimated in Glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/The-standard-error-of-covariance-parameter-can-t-be-estimated-in/m-p/894770#M44335</link>
      <description>&lt;P&gt;Thank you very much for the reply!&lt;/P&gt;&lt;P&gt;yes, I do have 2 assessments for each eye and subject (assessments at month 6 and month 12). so, usually, there are 4 records&amp;nbsp;for each subject. but I don't understand&lt;STRONG&gt; why compound symmetry is over fitting for this data? can you explain more? thank you very much in advance!&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 12:12:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/The-standard-error-of-covariance-parameter-can-t-be-estimated-in/m-p/894770#M44335</guid>
      <dc:creator>Yan_vivien</dc:creator>
      <dc:date>2023-09-18T12:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: The standard error of covariance parameter can't be estimated in Glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/The-standard-error-of-covariance-parameter-can-t-be-estimated-in/m-p/894772#M44336</link>
      <description>&lt;P&gt;thank you very much for the reply!&lt;/P&gt;&lt;P&gt;but i still don't understand why the&amp;nbsp;&lt;SPAN&gt;non-diagonal&amp;nbsp;&lt;/SPAN&gt;parameters are not needed? can you explain more? Thank you very much!&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 12:18:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/The-standard-error-of-covariance-parameter-can-t-be-estimated-in/m-p/894772#M44336</guid>
      <dc:creator>Yan_vivien</dc:creator>
      <dc:date>2023-09-18T12:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: The standard error of covariance parameter can't be estimated in Glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/The-standard-error-of-covariance-parameter-can-t-be-estimated-in/m-p/894783#M44337</link>
      <description>&lt;P&gt;When you fit random effects on the G side (which you are doing with your RANDOM statement in GLIMMIX) then specifying something like&lt;/P&gt;
&lt;P&gt;random intercept / subject=id;&lt;/P&gt;
&lt;P&gt;will fit a common covariance to all the observations with with same id value. This fits a block-diagonal structure through Z'GZ. You do not need a covariance structure on the RANDOM statement to achieve this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you fit random effects on the R side (using the RESIDUAL keyword on the RANDOM STATEMENT in GLIMMIX or the REPEATED statement in MIXED) then you need TYPE=CS to get this block diagonal structure. V=Z'GZ + R, so you need to specify the covariance structure for the R part here.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can confirm this behavior through the V option on the RANDOM statement. V shows blocks of the V matrix when GLIMMIX (or MIXED) can partition V into blocks (it needs the same subject or nested subjects on multiple RANDOM statements to do this). Use V=2 to see the block for the 2nd subject.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 13:57:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/The-standard-error-of-covariance-parameter-can-t-be-estimated-in/m-p/894783#M44337</guid>
      <dc:creator>StatsMan</dc:creator>
      <dc:date>2023-09-18T13:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: The standard error of covariance parameter can't be estimated in Glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/The-standard-error-of-covariance-parameter-can-t-be-estimated-in/m-p/895399#M44392</link>
      <description>&lt;P&gt;Thank you very much for the reply!&amp;nbsp; i'm not sure if i fully understand what you mean because the knowledge about R/G side was learnt months ago... anyway, i will learn them again and come back.&lt;/P&gt;&lt;P&gt;Could you have a look on the below picture? it explained why CS was choosen as the covariance structure for eyes, it was reasonable for me when i first see it, so i followed the slids and choosed CS as the&amp;nbsp; covariance structure, but then...... &lt;STRONG&gt;do you think the clarification on the slids is correct?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cs.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88218i34C633AE843F46C0/image-size/large?v=v2&amp;amp;px=999" role="button" title="cs.png" alt="cs.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2023 08:29:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/The-standard-error-of-covariance-parameter-can-t-be-estimated-in/m-p/895399#M44392</guid>
      <dc:creator>Yan_vivien</dc:creator>
      <dc:date>2023-09-22T08:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: The standard error of covariance parameter can't be estimated in Glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/The-standard-error-of-covariance-parameter-can-t-be-estimated-in/m-p/896312#M44425</link>
      <description>&lt;P&gt;With TYPE=CS on the 2nd RANDOM statement, you are likely getting a message in the log that says either the G matrix is non-positive definite or the Hessian is non-positive definite. You are also likely to see that the CS parameter in the GLIMMIX output is 0, or that if you remove TYPE=CS then you will see that two of the parameters in the model with TYPE=CS sum to one of the parameters in the model without TYPE=CS.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the slide you reference, the second RANDOM statement with SUBJECT=PTID correlates all of the observations from the same patient. The first RANDOM statement, with SUBJECT=EYE(PTID) and leaving off TYPE=CS, correlates the observations from the same eye within a subject. If you use the V option as I suggested earlier, you will see a block diagonal covariance structure that shows this correlation pattern. Here is an example:&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="StatsMan_0-1695925539682.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88403i3F1269EB36907095/image-size/medium?v=v2&amp;amp;px=400" role="button" title="StatsMan_0-1695925539682.png" alt="StatsMan_0-1695925539682.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This is the result of the V option for 2 subjects. The first 3 rows and columns are for 3 observations on eye 1 for subject 1. Rows and columns 4-6 are for 3 observations on eye 2 for subject 1. This structure was obtained without using TYPE=CS on the RANDOM statement for SUBJECT=EYE(PTID). You get a correlation within the eyes and within all observations on the same subject.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2023 18:28:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/The-standard-error-of-covariance-parameter-can-t-be-estimated-in/m-p/896312#M44425</guid>
      <dc:creator>StatsMan</dc:creator>
      <dc:date>2023-09-28T18:28:09Z</dc:date>
    </item>
  </channel>
</rss>

