<?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: Correlation Matrix in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Correlation-Matrix/m-p/448479#M69601</link>
    <description>&lt;P&gt;Do you want to create separate correlation matrices for each level of your categorical variable?&lt;/P&gt;</description>
    <pubDate>Sun, 25 Mar 2018 06:42:56 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2018-03-25T06:42:56Z</dc:date>
    <item>
      <title>Correlation Matrix</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Correlation-Matrix/m-p/448451#M69597</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been using proc corr to conduct correlation matrix for continuous variables: "var" diagnosis&amp;nbsp;rates&amp;nbsp;(for 8 years) "with"&amp;nbsp; volumes (for&amp;nbsp;8 years) - see below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to do something similar for "var" diagnosis rates (8 years) "with" sex (m/f) and another categorical variable with 5 levels.&amp;nbsp; Any suggestions for procedures to do a correlation matrix (var: 8 continuous, with categorical [2 levels and another variable with 5 levels])?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC CORR DATA=data.eva;&lt;BR /&gt;VAR rate_2009 rate_2010 rate_2011 rate_2012 rate_2013 rate_2014 rate_2015 rate_2016;&lt;BR /&gt;WITH tot_2009 tot_2010 tot_2011 tot_2012 tot_2013 tot_2014 tot_2015 tot_2016;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Mar 2018 20:17:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Correlation-Matrix/m-p/448451#M69597</guid>
      <dc:creator>kthartma</dc:creator>
      <dc:date>2018-03-24T20:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Correlation Matrix</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Correlation-Matrix/m-p/448479#M69601</link>
      <description>&lt;P&gt;Do you want to create separate correlation matrices for each level of your categorical variable?&lt;/P&gt;</description>
      <pubDate>Sun, 25 Mar 2018 06:42:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Correlation-Matrix/m-p/448479#M69601</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-03-25T06:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Correlation Matrix</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Correlation-Matrix/m-p/448502#M69602</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I think so, I want it to be like:&lt;BR /&gt;&lt;BR /&gt;Tot_2009 Tot_2010 Tot_2011 Tot_2012&lt;BR /&gt;Female&lt;BR /&gt;Male&lt;BR /&gt;&lt;BR /&gt;If that makes sense. Let me know.&lt;BR /&gt;</description>
      <pubDate>Sun, 25 Mar 2018 15:37:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Correlation-Matrix/m-p/448502#M69602</guid>
      <dc:creator>kthartma</dc:creator>
      <dc:date>2018-03-25T15:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: Correlation Matrix</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Correlation-Matrix/m-p/448503#M69603</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/190055"&gt;@kthartma&lt;/a&gt; wrote:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Tot_2009 Tot_2010 Tot_2011 Tot_2012&lt;BR /&gt;Female&lt;BR /&gt;Male&lt;BR /&gt;&lt;BR /&gt;If that makes sense. Let me know.&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Actually, it doesn't make any sense to me. This is just words without description or meaning in the context of correlation of matrices.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The only thing that makes sense to me in the context of correlation matrices is to produce a correlation matrix for males and a different correlation matrix for females. If that's the case, sort by male/female, and then put a BY statement into your PROC CORR.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that's NOT what you mean, please describe this in detail, instead of the rather brief descriptions you have given so far. &lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;Show us an example of what you want.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As long as we're discussing this, I don't see any reason to correlate rate2009 with tot_2016, for example, I can't image how this correlation of data 7 years apart would be meaningful.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Mar 2018 19:50:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Correlation-Matrix/m-p/448503#M69603</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-03-25T19:50:03Z</dc:date>
    </item>
  </channel>
</rss>

