<?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 on subset of data in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-CORR-on-subset-of-data/m-p/278574#M14706</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a simple code for proc corr:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;corr&lt;/STRONG&gt; data=sasuser.sasfile190616;&lt;/P&gt;
&lt;P&gt;var TAssets Sales ROA Q SalesGro RDSales LTassets;&lt;/P&gt;
&lt;P&gt;by FF;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want that this procedure will run only for these lines that FF=1. Where I have to add this condition?&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;</description>
    <pubDate>Mon, 20 Jun 2016 12:36:21 GMT</pubDate>
    <dc:creator>yael</dc:creator>
    <dc:date>2016-06-20T12:36:21Z</dc:date>
    <item>
      <title>PROC CORR on subset of data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-CORR-on-subset-of-data/m-p/278574#M14706</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a simple code for proc corr:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;corr&lt;/STRONG&gt; data=sasuser.sasfile190616;&lt;/P&gt;
&lt;P&gt;var TAssets Sales ROA Q SalesGro RDSales LTassets;&lt;/P&gt;
&lt;P&gt;by FF;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want that this procedure will run only for these lines that FF=1. Where I have to add this condition?&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;</description>
      <pubDate>Mon, 20 Jun 2016 12:36:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-CORR-on-subset-of-data/m-p/278574#M14706</guid>
      <dc:creator>yael</dc:creator>
      <dc:date>2016-06-20T12:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: PROC CORR</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-CORR-on-subset-of-data/m-p/278576#M14707</link>
      <description>&lt;P&gt;You can filter your data with a WHERE clause.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This can be placed in your code, I generally recommend it goes right after the PROC CORR statement.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;WHERE FF=1;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The full code is below, but if you're running it for only one value of FF, then you don't need the BY statement. In general I find its best to include the BY as early as possible in the proc.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc corr data=sasuser.sasfile190616;
Where FF=1;
by FF;
var TAssets Sales ROA Q SalesGro RDSales LTassets;
run&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 20 Jun 2016 05:32:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-CORR-on-subset-of-data/m-p/278576#M14707</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-06-20T05:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: PROC CORR</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-CORR-on-subset-of-data/m-p/278579#M14708</link>
      <description>&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2016 05:50:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-CORR-on-subset-of-data/m-p/278579#M14708</guid>
      <dc:creator>yael</dc:creator>
      <dc:date>2016-06-20T05:50:39Z</dc:date>
    </item>
  </channel>
</rss>

