<?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: Producing a combined correlation matrix using PROC MIANALYZE in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Producing-a-combined-correlation-matrix-using-PROC-MIANALYZE/m-p/697948#M79828</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/356459"&gt;@SandraG&lt;/a&gt;&amp;nbsp;and welcome to the SAS Support Communities!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;Only a few people will notice that you have replied to this almost ten year old thread. Notifications are sent to the participants of the old discussion, i.e., &lt;EM&gt;to only one person&lt;/EM&gt; in this case -- whose last visit to the SAS Support Communities was in 2017 (according to &lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/19903" target="_blank" rel="noopener"&gt;jrbrauer's user profile&lt;/A&gt;). I suggest that you start a new thread, not in the SAS Procedures subforum, but under &lt;A href="https://communities.sas.com/t5/Statistical-Procedures/bd-p/statistical_procedures" target="_blank" rel="noopener"&gt;Statistical Procedures&lt;/A&gt;&amp;nbsp;(use the orange "Start A Topic" button there). Then it'll be much more likely that one of the SAS/STAT experts will reply to your question. You can provide a link to jrbrauer's post as a reference:&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Procedures/Producing-a-combined-correlation-matrix-using-PROC-MIANALYZE/m-p/14962/highlight/true#M2541" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/SAS-Procedures/Producing-a-combined-correlation-matrix-using-PROC-MIANALYZE/m-p/14962/highlight/true#M2541&lt;/A&gt;&lt;/P&gt;
&lt;P data-unlink="true"&gt;Good luck!&lt;/P&gt;</description>
    <pubDate>Tue, 10 Nov 2020 17:57:52 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2020-11-10T17:57:52Z</dc:date>
    <item>
      <title>Producing a combined correlation matrix using PROC MIANALYZE</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Producing-a-combined-correlation-matrix-using-PROC-MIANALYZE/m-p/14961#M2540</link>
      <description>Hi all,&lt;BR /&gt;
&lt;BR /&gt;
I cannot seem to figure out the code to create a combined correlation matrix from several imputed datasets. &lt;BR /&gt;
&lt;BR /&gt;
I have used Proc Corr to output a datafile with the correlation matrices from 5 imputed datasets using the code below. However, I cannot seem to figure out the Proc Mianalyze code to output the combined matrix - the latter code just produces combined means and standard errors. Does anyone know how to combine and output the correlation matrix? &lt;BR /&gt;
&lt;BR /&gt;
* output stacked dataset with correlation matrices for each imputed dataset;&lt;BR /&gt;
proc corr data=temp out = outcorr;&lt;BR /&gt;
var x1 x2 x3 x4 ;&lt;BR /&gt;
by _imputation_;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
*combine results using proc mianalyze;&lt;BR /&gt;
proc mianalyze data=outcorr ;&lt;BR /&gt;
modeleffects x1 x2 x3 x4;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Thank you for your time and any help you can offer!&lt;BR /&gt;
Jon</description>
      <pubDate>Tue, 22 Feb 2011 15:58:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Producing-a-combined-correlation-matrix-using-PROC-MIANALYZE/m-p/14961#M2540</guid>
      <dc:creator>jrbrauer</dc:creator>
      <dc:date>2011-02-22T15:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Producing a combined correlation matrix using PROC MIANALYZE</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Producing-a-combined-correlation-matrix-using-PROC-MIANALYZE/m-p/14962#M2541</link>
      <description>A member of SAS technical support provided me with an answer to this query. I am posting the code below in case this helps anyone else...&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
* Below is a sample program that shows how to get a combined correlation matrix using MIANALYZE ;&lt;BR /&gt;
&lt;BR /&gt;
data FitMiss;&lt;BR /&gt;
   input Oxygen RunTime RunPulse @@;&lt;BR /&gt;
       x=rannor(412432)*oxygen;&lt;BR /&gt;
   datalines;&lt;BR /&gt;
 44.609  11.37  178     45.313  10.07  185&lt;BR /&gt;
 54.297   8.65  156     59.571    .      .&lt;BR /&gt;
 49.874   9.22    .     44.811  11.63  176&lt;BR /&gt;
  .     11.95  176          .  10.85    .&lt;BR /&gt;
 39.442  13.08  174     60.055   8.63  170&lt;BR /&gt;
 50.541    .      .     37.388  14.03  186&lt;BR /&gt;
 44.754  11.12  176     47.273    .      .&lt;BR /&gt;
 51.855  10.33  166     49.156   8.95  180&lt;BR /&gt;
 40.836  10.95  168     46.672  10.00    .&lt;BR /&gt;
 46.774  10.25    .     50.388  10.08  168&lt;BR /&gt;
 39.407  12.63  174     46.080  11.17  156&lt;BR /&gt;
 45.441   9.63  164       .      8.92    .&lt;BR /&gt;
 45.118  11.08    .     39.203  12.88  168&lt;BR /&gt;
 45.790  10.47  186     50.545   9.93  148&lt;BR /&gt;
 48.673   9.40  186     47.920  11.50  170&lt;BR /&gt;
 47.467  10.50  170&lt;BR /&gt;
 ;&lt;BR /&gt;
&lt;BR /&gt;
  proc mi data=FitMiss seed=3237851 noprint out=outmi;&lt;BR /&gt;
     var Oxygen RunTime RunPulse x;&lt;BR /&gt;
  run;&lt;BR /&gt;
&lt;BR /&gt;
  proc corr data=outmi fisher(biasadj=no);&lt;BR /&gt;
     var Oxygen RunTime runpulse x;&lt;BR /&gt;
     by _Imputation_;&lt;BR /&gt;
     ods output FisherPearsonCorr= outz;&lt;BR /&gt;
  run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
  data outz;&lt;BR /&gt;
     set outz;&lt;BR /&gt;
     StdZ= 1. / sqrt(NObs-3);&lt;BR /&gt;
         pair=trim(left(var))||trim(left(withvar));&lt;BR /&gt;
  run;&lt;BR /&gt;
proc sort data=outz;&lt;BR /&gt;
by pair _imputation_;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
  proc mianalyze data=outz;&lt;BR /&gt;
  by pair;&lt;BR /&gt;
     ods output ParameterEstimates=parms;&lt;BR /&gt;
     modeleffects ZVal;&lt;BR /&gt;
     stderr StdZ;&lt;BR /&gt;
  run;&lt;BR /&gt;
data corr_ci;&lt;BR /&gt;
     set parms;&lt;BR /&gt;
         label r='Correlation Coefficient';&lt;BR /&gt;
     r=tanh( Estimate);&lt;BR /&gt;
  run;&lt;BR /&gt;
proc print data=corr_ci label;&lt;BR /&gt;
run;</description>
      <pubDate>Wed, 23 Feb 2011 00:18:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Producing-a-combined-correlation-matrix-using-PROC-MIANALYZE/m-p/14962#M2541</guid>
      <dc:creator>jrbrauer</dc:creator>
      <dc:date>2011-02-23T00:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Producing a combined correlation matrix using PROC MIANALYZE</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Producing-a-combined-correlation-matrix-using-PROC-MIANALYZE/m-p/697935#M79827</link>
      <description>&lt;P&gt;This is an amazing help. I am having the same issue but with polychoric correlation matrices.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 5 imputed datasets (outMI), and I have the following code to compute polychoric correlation matrices from the 5 imputed datasets (to create dataset polycorr_MI):&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;proc corr data=outMI outplc=polycorr_MI (TYPE=CORR);&lt;BR /&gt;var x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15;&lt;BR /&gt;by _IMPUTATION_;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a similiar way to do this combination when you have polychoric and not pearson correlations?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 17:26:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Producing-a-combined-correlation-matrix-using-PROC-MIANALYZE/m-p/697935#M79827</guid>
      <dc:creator>SandraG</dc:creator>
      <dc:date>2020-11-10T17:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Producing a combined correlation matrix using PROC MIANALYZE</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Producing-a-combined-correlation-matrix-using-PROC-MIANALYZE/m-p/697948#M79828</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/356459"&gt;@SandraG&lt;/a&gt;&amp;nbsp;and welcome to the SAS Support Communities!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;Only a few people will notice that you have replied to this almost ten year old thread. Notifications are sent to the participants of the old discussion, i.e., &lt;EM&gt;to only one person&lt;/EM&gt; in this case -- whose last visit to the SAS Support Communities was in 2017 (according to &lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/19903" target="_blank" rel="noopener"&gt;jrbrauer's user profile&lt;/A&gt;). I suggest that you start a new thread, not in the SAS Procedures subforum, but under &lt;A href="https://communities.sas.com/t5/Statistical-Procedures/bd-p/statistical_procedures" target="_blank" rel="noopener"&gt;Statistical Procedures&lt;/A&gt;&amp;nbsp;(use the orange "Start A Topic" button there). Then it'll be much more likely that one of the SAS/STAT experts will reply to your question. You can provide a link to jrbrauer's post as a reference:&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Procedures/Producing-a-combined-correlation-matrix-using-PROC-MIANALYZE/m-p/14962/highlight/true#M2541" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/SAS-Procedures/Producing-a-combined-correlation-matrix-using-PROC-MIANALYZE/m-p/14962/highlight/true#M2541&lt;/A&gt;&lt;/P&gt;
&lt;P data-unlink="true"&gt;Good luck!&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 17:57:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Producing-a-combined-correlation-matrix-using-PROC-MIANALYZE/m-p/697948#M79828</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2020-11-10T17:57:52Z</dc:date>
    </item>
  </channel>
</rss>

