<?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 proc corr no number of obs in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-corr-no-number-of-obs/m-p/335727#M62946</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a quick way to exclude number of observations in the correlation matrix created by proc corr?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks a lot!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lizi&lt;/P&gt;</description>
    <pubDate>Fri, 24 Feb 2017 20:15:55 GMT</pubDate>
    <dc:creator>lizzy28</dc:creator>
    <dc:date>2017-02-24T20:15:55Z</dc:date>
    <item>
      <title>proc corr no number of obs</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-corr-no-number-of-obs/m-p/335727#M62946</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a quick way to exclude number of observations in the correlation matrix created by proc corr?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks a lot!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lizi&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2017 20:15:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-corr-no-number-of-obs/m-p/335727#M62946</guid>
      <dc:creator>lizzy28</dc:creator>
      <dc:date>2017-02-24T20:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: proc corr no number of obs</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-corr-no-number-of-obs/m-p/335740#M62947</link>
      <description>&lt;P&gt;Can you be more specific? I can't see which N you may be referring to.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2017 20:56:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-corr-no-number-of-obs/m-p/335740#M62947</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-02-24T20:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: proc corr no number of obs</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-corr-no-number-of-obs/m-p/335867#M62953</link>
      <description>&lt;P&gt;If you're asking about the N values shown (along with correlations and pvalues) in each cell of the matrix, you can easily eliminate their appearance if you choose to exclude all cases that have any missing values. That way, the N will only show up once, above the correlation matrix.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That can be done by selecting the NOMISS&amp;nbsp;option. e.g.:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc corr data = sashelp.cars nomiss;
run;

&lt;/PRE&gt;
&lt;P&gt;HTH,&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Feb 2017 16:25:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-corr-no-number-of-obs/m-p/335867#M62953</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-02-25T16:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: proc corr no number of obs</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-corr-no-number-of-obs/m-p/335940#M62957</link>
      <description>Thanks, Art! &lt;BR /&gt;&lt;BR /&gt;The only problem is that NOMISS excludes all cases with missing values. I need to keep all non-missing data for their correlations, but don't want to display the sample size in the output.</description>
      <pubDate>Sun, 26 Feb 2017 03:00:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-corr-no-number-of-obs/m-p/335940#M62957</guid>
      <dc:creator>lizzy28</dc:creator>
      <dc:date>2017-02-26T03:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: proc corr no number of obs</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-corr-no-number-of-obs/m-p/335941#M62958</link>
      <description>Thank you, Reeza. I'd like to have N values not shown along with correlations and pvalues. For pvalues, we can simple add NOPROB not to show pvalues. Can we do that for N?</description>
      <pubDate>Sun, 26 Feb 2017 03:02:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-corr-no-number-of-obs/m-p/335941#M62958</guid>
      <dc:creator>lizzy28</dc:creator>
      <dc:date>2017-02-26T03:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: proc corr no number of obs</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-corr-no-number-of-obs/m-p/335955#M62959</link>
      <description>&lt;P&gt;Then an alternative is to modify the template that drives proc corr. e.g.:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ods path work.template(update) sashelp.tmplmst;
proc template;
   edit base.corr.stackedmatrix;
      column (RowName RowLabel) (Matrix) * (Matrix2) /** (Matrix3)*/ * (Matrix4);
    end;
run;
proc corr data=sashelp.cars;
run;
proc template; 
   delete base.corr.stackedmatrix;
run;
&lt;/PRE&gt;
&lt;P&gt;In the above code I've made a temporary template replacement for proc corr that has * (Matrix3) commented out. Since Matrix3 contains the N values, they won't appear in the output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HTH,&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Feb 2017 05:16:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-corr-no-number-of-obs/m-p/335955#M62959</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-02-26T05:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: proc corr no number of obs</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-corr-no-number-of-obs/m-p/336180#M62972</link>
      <description>&lt;P&gt;Thanks a lot, Art!&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2017 13:15:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-corr-no-number-of-obs/m-p/336180#M62972</guid>
      <dc:creator>lizzy28</dc:creator>
      <dc:date>2017-02-27T13:15:02Z</dc:date>
    </item>
  </channel>
</rss>

