<?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: Help on Proc Corr in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Help-on-Proc-Corr/m-p/73171#M3524</link>
    <description>Hello Lisa,&lt;BR /&gt;
I prefer the ODS output since you get both the correlation coefficient and the p-Values in a single output dataset.&lt;BR /&gt;
&lt;BR /&gt;
See my example below using the SASHELP.CLASS table.&lt;BR /&gt;
&lt;BR /&gt;
proc sort data=sashelp.class out=class;&lt;BR /&gt;
  by sex;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
ods output PearsonCorr=Pearson_Corr ;&lt;BR /&gt;
proc corr data=class Pearson;&lt;BR /&gt;
  var _numeric_;&lt;BR /&gt;
  by sex;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Below is a link to all the ODS tables that can be produced from PROC CORR.&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/procstat/63104/HTML/default/viewer.htm#procstat_corr_sect025.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/procstat/63104/HTML/default/viewer.htm#procstat_corr_sect025.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
D</description>
    <pubDate>Mon, 20 Sep 2010 12:54:58 GMT</pubDate>
    <dc:creator>darrylovia</dc:creator>
    <dc:date>2010-09-20T12:54:58Z</dc:date>
    <item>
      <title>Help on Proc Corr</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-on-Proc-Corr/m-p/73169#M3522</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
Following is the code I would be running :&lt;BR /&gt;
proc corr; &lt;BR /&gt;
var &amp;amp;var;&lt;BR /&gt;
by segment;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
I am trying to find out which of my variables are highly correlated then store them in a dataset ...&lt;BR /&gt;
&lt;BR /&gt;
Output data set I am interested in should show me something like:&lt;BR /&gt;
&lt;BR /&gt;
Segment_Name      Variables_name   Correlation_value&lt;BR /&gt;
a                              x1, x2                          0.85&lt;BR /&gt;
a                              x5, x3                          0.92&lt;BR /&gt;
b                              x2, x3                          0.86&lt;BR /&gt;
&lt;BR /&gt;
Is there any way I could work around in SAS and get this kind of output??</description>
      <pubDate>Sun, 19 Sep 2010 08:45:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-on-Proc-Corr/m-p/73169#M3522</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-09-19T08:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help on Proc Corr</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-on-Proc-Corr/m-p/73170#M3523</link>
      <description>Hi:&lt;BR /&gt;
  ODS OUTPUT can create output datasets from SAS procedures, such as PROC CORR. However, PROC CORR has the OUTP= option, which will output just the Pearson Correlations to a dataset, as described here:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/procstat/63104/HTML/default/viewer.htm#procstat_corr_sect004.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/procstat/63104/HTML/default/viewer.htm#procstat_corr_sect004.htm&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/procstat/63104/HTML/default/viewer.htm#procstat_corr_sect033.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/procstat/63104/HTML/default/viewer.htm#procstat_corr_sect033.htm&lt;/A&gt;&lt;BR /&gt;
                  &lt;BR /&gt;
  If you review the output from this program, you may find that it is close to what you want.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
** 1) OUTP method;&lt;BR /&gt;
** if SASHELP.CLASS is sorted by AGE, the BY variable.;&lt;BR /&gt;
proc corr data=sashelp.class outp=work.outpmethod; &lt;BR /&gt;
var height weight;&lt;BR /&gt;
by age;&lt;BR /&gt;
run;&lt;BR /&gt;
                               &lt;BR /&gt;
proc print data=work.outpmethod;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
[/pre]</description>
      <pubDate>Sun, 19 Sep 2010 14:04:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-on-Proc-Corr/m-p/73170#M3523</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-09-19T14:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: Help on Proc Corr</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-on-Proc-Corr/m-p/73171#M3524</link>
      <description>Hello Lisa,&lt;BR /&gt;
I prefer the ODS output since you get both the correlation coefficient and the p-Values in a single output dataset.&lt;BR /&gt;
&lt;BR /&gt;
See my example below using the SASHELP.CLASS table.&lt;BR /&gt;
&lt;BR /&gt;
proc sort data=sashelp.class out=class;&lt;BR /&gt;
  by sex;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
ods output PearsonCorr=Pearson_Corr ;&lt;BR /&gt;
proc corr data=class Pearson;&lt;BR /&gt;
  var _numeric_;&lt;BR /&gt;
  by sex;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Below is a link to all the ODS tables that can be produced from PROC CORR.&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/procstat/63104/HTML/default/viewer.htm#procstat_corr_sect025.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/procstat/63104/HTML/default/viewer.htm#procstat_corr_sect025.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
D</description>
      <pubDate>Mon, 20 Sep 2010 12:54:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-on-Proc-Corr/m-p/73171#M3524</guid>
      <dc:creator>darrylovia</dc:creator>
      <dc:date>2010-09-20T12:54:58Z</dc:date>
    </item>
  </channel>
</rss>

