<?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: proc mixed: confidence intervals for components of the R correlation matrix in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-confidence-intervals-for-components-of-the-R/m-p/913446#M45345</link>
    <description>&lt;P&gt;"So, is your issue that the CIs are given only for the covariances and not for the correlations?"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;yes, i have repeated this in literally all of the above posts &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i'm beginning to think the se can't be obtained for the correlation estimates, although I'm pretty sure both R and STATA can provide them, i wonder why SAS doesn't.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jan 2024 17:48:34 GMT</pubDate>
    <dc:creator>pmbrown</dc:creator>
    <dc:date>2024-01-29T17:48:34Z</dc:date>
    <item>
      <title>proc mixed: confidence intervals for components of the R correlation matrix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-confidence-intervals-for-components-of-the-R/m-p/913106#M45339</link>
      <description>&lt;P&gt;the covariance parameters are provided with se's, but it does not seem obvious if you can get the se's for the elements of the correlation matrix resulting from rcorr on the repeated statement (they are not provided in the rcorr ods). Are they available or can they be calculated by hand? You don't often see variance components presented with confidence intervals&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 12:25:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-confidence-intervals-for-components-of-the-R/m-p/913106#M45339</guid>
      <dc:creator>pmbrown</dc:creator>
      <dc:date>2024-01-26T12:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: proc mixed: confidence intervals for components of the R correlation matrix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-confidence-intervals-for-components-of-the-R/m-p/913373#M45340</link>
      <description>&lt;P&gt;You can use the CL option on the PROC MIXED statement to get confidence intervals for the covariance parameters. The confidence limits are displayed as extra columns in the "Covariance Parameter Estimates" table. You can use the COVTEST option to get asymptotic standard errors. See this page of the doc:&amp;nbsp;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_mixed_syntax01.htm" target="_blank" rel="noopener"&gt;SAS Help Center: PROC MIXED Statement&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that doesn't answer your question, please show the statements that you are using.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 11:51:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-confidence-intervals-for-components-of-the-R/m-p/913373#M45340</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2024-01-29T11:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: proc mixed: confidence intervals for components of the R correlation matrix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-confidence-intervals-for-components-of-the-R/m-p/913398#M45341</link>
      <description>&lt;P&gt;Thanks Rick. It's the same code in this paper:&amp;nbsp;&lt;A href="https://support.sas.com/resources/papers/proceedings/proceedings/sugi31/187-31.pdf" target="_self"&gt;Analyzing Multivariate Longitudinal Data Using SAS&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc mixed data=CRISP_MIX covtest noclprint;
title1 "Model 1.1 Mixed model with a Kronoker product covariance";
title2 "KVS (X) versus CVS (Y)";
class pkdid vname visitc;
model val=vname*visit/s noint;
repeated vname visitc /type=un@ar(1) subject=pkdid r rcorr;
where vname="KVS" or vname="CVS";
run;&lt;/PRE&gt;
&lt;P&gt;they display the correlations resulting from this model in the middle portion of the table&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="Capture.PNG" style="width: 532px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/93050i63BF5EA15CEF9E84/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the SAS output displays se's for the cov parameters, but not for these correlation estimates. I wonder if they are obtainable&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 14:13:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-confidence-intervals-for-components-of-the-R/m-p/913398#M45341</guid>
      <dc:creator>pmbrown</dc:creator>
      <dc:date>2024-01-29T14:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: proc mixed: confidence intervals for components of the R correlation matrix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-confidence-intervals-for-components-of-the-R/m-p/913404#M45342</link>
      <description>&lt;P&gt;OK. So what happens if you add the CL option to the PROC MIXED statement?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 14:22:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-confidence-intervals-for-components-of-the-R/m-p/913404#M45342</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2024-01-29T14:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: proc mixed: confidence intervals for components of the R correlation matrix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-confidence-intervals-for-components-of-the-R/m-p/913410#M45343</link>
      <description>&lt;P&gt;Unfortunately the CI is not displayed when i add cl to the mixed statement. The correlations are presented in the output and in the rcorr ods in matrix form (making it tough to display the corresponding CIs), whereas the covariance parameters are displayed in a table, allowing the CIs to be presented alongside them. I can't show my particular output but it's exactly as seen in figures 32 and 33 here:&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_mixed_examples02.htm" target="_blank" rel="noopener"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_mixed_examples02.htm&lt;/A&gt;. Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;edit: actually, it's not exactly like figure 32 because it is the correlation matrix, the heading looks like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 434px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/93052i483177853D3B7613/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 15:31:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-confidence-intervals-for-components-of-the-R/m-p/913410#M45343</guid>
      <dc:creator>pmbrown</dc:creator>
      <dc:date>2024-01-29T15:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: proc mixed: confidence intervals for components of the R correlation matrix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-confidence-intervals-for-components-of-the-R/m-p/913429#M45344</link>
      <description>&lt;P&gt;For the example in the doc, if I add the CL option on the PROC MIXED statement, the output includes the confidence limits. However, perhaps the issue is that the CIs are not added to the R table ("Estimated R Matrix for Person 1") but to the CovParms table ("Covariance Parameter Estimates")? If you are using an ODS SELECT or ODS OUTPUT statement, make sure you are capturing the CovParms table. Here is the doc example with the CL option and an ODS statement that selects only the R and CovParms tables:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc mixed data=pr method=ml covtest CL;
   class Person Gender;
   model y = Gender Age Gender*Age / s;
   repeated / type=un subject=Person r;
   ods select R CovParms;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Rick_SAS_0-1706543469515.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/93053iA2C810F0601DE8D3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Rick_SAS_0-1706543469515.png" alt="Rick_SAS_0-1706543469515.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;*UPDATE*:&lt;/STRONG&gt; I see that you changed your last response. You are now using the RCORR option on the REPEATED statement and are looking at the RCORR ODS table. So, is your issue that the CIs are given only for the covariances and not for the correlations?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 16:20:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-confidence-intervals-for-components-of-the-R/m-p/913429#M45344</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2024-01-29T16:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: proc mixed: confidence intervals for components of the R correlation matrix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-confidence-intervals-for-components-of-the-R/m-p/913446#M45345</link>
      <description>&lt;P&gt;"So, is your issue that the CIs are given only for the covariances and not for the correlations?"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;yes, i have repeated this in literally all of the above posts &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i'm beginning to think the se can't be obtained for the correlation estimates, although I'm pretty sure both R and STATA can provide them, i wonder why SAS doesn't.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 17:48:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-confidence-intervals-for-components-of-the-R/m-p/913446#M45345</guid>
      <dc:creator>pmbrown</dc:creator>
      <dc:date>2024-01-29T17:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: proc mixed: confidence intervals for components of the R correlation matrix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-confidence-intervals-for-components-of-the-R/m-p/913454#M45346</link>
      <description>&lt;P&gt;I'm sorry if my questions have frustrated you. I was just trying to understand the issue. Perhaps one of the other experts will be able to answer your questions. Good luck!&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 18:14:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-confidence-intervals-for-components-of-the-R/m-p/913454#M45346</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2024-01-29T18:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: proc mixed: confidence intervals for components of the R correlation matrix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-confidence-intervals-for-components-of-the-R/m-p/913628#M45354</link>
      <description>&lt;P&gt;If your errors are approximately normally distributed, you can use the value applied in the Fisher transformation of a correlation to a z-score. In the asymptotic case, this standard error is 1/sqrt(n-3), where n is the number of observations used.&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;
&lt;P&gt;(Gotta admit this is something of a straw man answer, but it might stimulate some discussion).&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 17:27:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-confidence-intervals-for-components-of-the-R/m-p/913628#M45354</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2024-01-30T17:27:50Z</dc:date>
    </item>
  </channel>
</rss>

