<?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 Correlations with PROC MIANALYZE in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Correlations-with-PROC-MIANALYZE/m-p/61151#M2848</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: times new roman,times;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; font-family: Courier;"&gt;&lt;STRONG style="font-size: 10pt; font-family: Courier;"&gt;&lt;STRONG style="font-size: 10pt; font-family: Courier;"&gt;&lt;STRONG style="font-size: 10pt; font-family: Courier;"&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: times new roman,times;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;I am attempting to find the correlations of 8 variables from a data set of multiply imputed data. I'm fine creating the data set, however I do not understand the example for finding correlations with PROC MIANALYZE on the SAS site. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The syntax they provide is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left"&gt;proc corr data=outmi out=outcorr;&lt;/P&gt;&lt;P align="left"&gt;var Oxygen RunTime;&lt;/P&gt;&lt;P align="left"&gt;by _Imputation_;&lt;/P&gt;&lt;P align="left"&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left"&gt;proc print data=outcorr (obs=10);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left"&gt;title ’Correlations (First Two Imputations)’;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;run;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left"&gt;data ztrans(type=EST);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left"&gt;set outcorr (drop= RunTime rename= Oxygen= Z);&lt;/P&gt;&lt;P align="left"&gt;if (_type_ = ’N’ or _name_ = ’RunTime’);&lt;/P&gt;&lt;P align="left"&gt;if (_type_ = ’CORR’) then do;&lt;/P&gt;&lt;P align="left"&gt;_type_= ’PARMS’;&lt;/P&gt;&lt;P align="left"&gt;_name_=’’;&lt;/P&gt;&lt;P align="left"&gt;Z= 0.5 * log((1+Z)/(1-Z));&lt;/P&gt;&lt;P align="left"&gt;end;&lt;/P&gt;&lt;P align="left"&gt;else if (_type_ = ’N’) then do;&lt;/P&gt;&lt;P align="left"&gt;_type_=’COVB’;&lt;/P&gt;&lt;P align="left"&gt;_name_=’Z’;&lt;/P&gt;&lt;P align="left"&gt;Z= 1. / (Z-3);&lt;/P&gt;&lt;P align="left"&gt;end;&lt;/P&gt;&lt;P align="left"&gt;run;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left"&gt;proc print data=ztrans;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left"&gt;title ’EST Type Data Set with Fisher’’s Z Transformation’;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left"&gt;proc mianalyze data=ztrans;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left"&gt;ods output ParmEst=parms;&lt;/P&gt;&lt;P align="left"&gt;var z;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;﻿&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;STRONG&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;STRONG&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;/P&gt;&lt;P align="left"&gt;set outcorr (drop= RunTime rename= Oxygen= Z);&lt;/P&gt;&lt;P align="left"&gt;if (_type_ = ’N’ or _name_ = ’RunTime’);&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;'Oxygen' and 'Runtime' are the only variables in the example data set. How would I re-write this syntax for a dataset with 8 variables? I cannot figure this out, and I can't run PROC MIANALYZE without first running this piece of syntax.&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;Has anyone dealt with this problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Sep 2011 03:37:31 GMT</pubDate>
    <dc:creator>Csbaldne</dc:creator>
    <dc:date>2011-09-07T03:37:31Z</dc:date>
    <item>
      <title>Correlations with PROC MIANALYZE</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Correlations-with-PROC-MIANALYZE/m-p/61151#M2848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: times new roman,times;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; font-family: Courier;"&gt;&lt;STRONG style="font-size: 10pt; font-family: Courier;"&gt;&lt;STRONG style="font-size: 10pt; font-family: Courier;"&gt;&lt;STRONG style="font-size: 10pt; font-family: Courier;"&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: times new roman,times;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;I am attempting to find the correlations of 8 variables from a data set of multiply imputed data. I'm fine creating the data set, however I do not understand the example for finding correlations with PROC MIANALYZE on the SAS site. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The syntax they provide is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left"&gt;proc corr data=outmi out=outcorr;&lt;/P&gt;&lt;P align="left"&gt;var Oxygen RunTime;&lt;/P&gt;&lt;P align="left"&gt;by _Imputation_;&lt;/P&gt;&lt;P align="left"&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left"&gt;proc print data=outcorr (obs=10);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left"&gt;title ’Correlations (First Two Imputations)’;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;run;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left"&gt;data ztrans(type=EST);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left"&gt;set outcorr (drop= RunTime rename= Oxygen= Z);&lt;/P&gt;&lt;P align="left"&gt;if (_type_ = ’N’ or _name_ = ’RunTime’);&lt;/P&gt;&lt;P align="left"&gt;if (_type_ = ’CORR’) then do;&lt;/P&gt;&lt;P align="left"&gt;_type_= ’PARMS’;&lt;/P&gt;&lt;P align="left"&gt;_name_=’’;&lt;/P&gt;&lt;P align="left"&gt;Z= 0.5 * log((1+Z)/(1-Z));&lt;/P&gt;&lt;P align="left"&gt;end;&lt;/P&gt;&lt;P align="left"&gt;else if (_type_ = ’N’) then do;&lt;/P&gt;&lt;P align="left"&gt;_type_=’COVB’;&lt;/P&gt;&lt;P align="left"&gt;_name_=’Z’;&lt;/P&gt;&lt;P align="left"&gt;Z= 1. / (Z-3);&lt;/P&gt;&lt;P align="left"&gt;end;&lt;/P&gt;&lt;P align="left"&gt;run;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left"&gt;proc print data=ztrans;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left"&gt;title ’EST Type Data Set with Fisher’’s Z Transformation’;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left"&gt;proc mianalyze data=ztrans;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left"&gt;ods output ParmEst=parms;&lt;/P&gt;&lt;P align="left"&gt;var z;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;﻿&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;STRONG&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;STRONG&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;/P&gt;&lt;P align="left"&gt;set outcorr (drop= RunTime rename= Oxygen= Z);&lt;/P&gt;&lt;P align="left"&gt;if (_type_ = ’N’ or _name_ = ’RunTime’);&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;'Oxygen' and 'Runtime' are the only variables in the example data set. How would I re-write this syntax for a dataset with 8 variables? I cannot figure this out, and I can't run PROC MIANALYZE without first running this piece of syntax.&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;Has anyone dealt with this problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2011 03:37:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Correlations-with-PROC-MIANALYZE/m-p/61151#M2848</guid>
      <dc:creator>Csbaldne</dc:creator>
      <dc:date>2011-09-07T03:37:31Z</dc:date>
    </item>
    <item>
      <title>Correlations with PROC MIANALYZE</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Correlations-with-PROC-MIANALYZE/m-p/61152#M2849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Sorry--the formatting came out strange. It should have read:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attempting to find the correlations of 8 variables from a data set of multiply imputed data. I'm fine creating the data set, however I do not understand the example for finding correlations with PROC MIANALYZE on the SAS site. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The syntax they provide is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc corr data=outmi out=outcorr;&lt;/P&gt;&lt;P&gt;var Oxygen RunTime;&lt;/P&gt;&lt;P&gt;by _Imputation_;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print data=outcorr (obs=10);&lt;/P&gt;&lt;P&gt;title ’Correlations (First Two Imputations)’;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data ztrans(type=EST);&lt;/P&gt;&lt;P&gt;set outcorr (drop= RunTime rename= Oxygen= Z);&lt;/P&gt;&lt;P&gt;if (_type_ = ’N’ or _name_ = ’RunTime’);&lt;/P&gt;&lt;P&gt;if (_type_ = ’CORR’) then do;&lt;/P&gt;&lt;P&gt;_type_= ’PARMS’;&lt;/P&gt;&lt;P&gt;_name_=’’;&lt;/P&gt;&lt;P&gt;Z= 0.5 * log((1+Z)/(1-Z));&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;else if (_type_ = ’N’) then do;&lt;/P&gt;&lt;P&gt;_type_=’COVB’;&lt;/P&gt;&lt;P&gt;_name_=’Z’;&lt;/P&gt;&lt;P&gt;Z= 1. / (Z-3);&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print data=ztrans;&lt;/P&gt;&lt;P&gt;title ’EST Type Data Set with Fisher’’s Z Transformation’;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc mianalyze data=ztrans;&lt;/P&gt;&lt;P&gt;ods output ParmEst=parms;&lt;/P&gt;&lt;P&gt;var z;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not understand the syntax following "data ztrans"--I understand that it is a Fisher's Z transformation, but I can't figure out how to write this for my data. Specifically, I do not understand the syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set outcorr (drop= RunTime rename= Oxygen= Z);&lt;/P&gt;&lt;P&gt;if (_type_ = ’N’ or _name_ = ’RunTime’);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;﻿'Oxygen' and 'Runtime' are the only variables in the example data set. How would I re-write this syntax for a dataset with 8 variables? I cannot figure this out, and I can't run PROC MIANALYZE without first running this piece of syntax.﻿&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;﻿Has anyone dealt with this problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2011 03:42:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Correlations-with-PROC-MIANALYZE/m-p/61152#M2849</guid>
      <dc:creator>Csbaldne</dc:creator>
      <dc:date>2011-09-07T03:42:30Z</dc:date>
    </item>
  </channel>
</rss>

