<?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: How to run proc reg with a subsample without creating a subsample? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-run-proc-reg-with-a-subsample-without-creating-a/m-p/738449#M80478</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/212695"&gt;@Phil_NZ&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi all SAS Users,&lt;/P&gt;
&lt;P&gt;Have a nice week,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Today I want to run PROC REG with a subsample, I know one way is to create a subsample and run PROC REG, but I wondering if there is any way to run directly in PROC REG procedure without another data step for creating a subsample.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My code of running for the WHOLE sample as below:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc reg data=merge_treat_con_copy;
	model wINV_DAY= pt wFIRM_SIZE LNGDP UNEMPLOYMENT  INFLATION 
		wTANGIBILITY FCF wLOG_MVE wCAP_INT wGRO_MAR/ tol vif collin;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now I want to run where INDC3="RTLS".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please hint me to sort it out?&lt;/P&gt;
&lt;P&gt;Warmest regards and thanks,&lt;/P&gt;
&lt;P&gt;Phil.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Your question includes the answer.&amp;nbsp; Just use a WHERE statement.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where INDC3="RTLS";&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 02 May 2021 22:33:02 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2021-05-02T22:33:02Z</dc:date>
    <item>
      <title>How to run proc reg with a subsample without creating a subsample?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-run-proc-reg-with-a-subsample-without-creating-a/m-p/738439#M80472</link>
      <description>&lt;P&gt;Hi all SAS Users,&lt;/P&gt;
&lt;P&gt;Have a nice week,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Today I want to run PROC REG with a subsample, I know one way is to create a subsample and run PROC REG, but I wondering if there is any way to run directly in PROC REG procedure without another data step for creating a subsample.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My code of running for the WHOLE sample as below:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc reg data=merge_treat_con_copy;
	model wINV_DAY= pt wFIRM_SIZE LNGDP UNEMPLOYMENT  INFLATION 
		wTANGIBILITY FCF wLOG_MVE wCAP_INT wGRO_MAR/ tol vif collin;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now I want to run where INDC3="RTLS".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please hint me to sort it out?&lt;/P&gt;
&lt;P&gt;Warmest regards and thanks,&lt;/P&gt;
&lt;P&gt;Phil.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 May 2021 22:08:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-run-proc-reg-with-a-subsample-without-creating-a/m-p/738439#M80472</guid>
      <dc:creator>Phil_NZ</dc:creator>
      <dc:date>2021-05-02T22:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to run proc reg with a subsample without creating a subsample?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-run-proc-reg-with-a-subsample-without-creating-a/m-p/738446#M80476</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc reg data=merge_treat_con_copy(where=(indc3='RTLS'));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 02 May 2021 22:27:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-run-proc-reg-with-a-subsample-without-creating-a/m-p/738446#M80476</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-05-02T22:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to run proc reg with a subsample without creating a subsample?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-run-proc-reg-with-a-subsample-without-creating-a/m-p/738449#M80478</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/212695"&gt;@Phil_NZ&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi all SAS Users,&lt;/P&gt;
&lt;P&gt;Have a nice week,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Today I want to run PROC REG with a subsample, I know one way is to create a subsample and run PROC REG, but I wondering if there is any way to run directly in PROC REG procedure without another data step for creating a subsample.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My code of running for the WHOLE sample as below:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc reg data=merge_treat_con_copy;
	model wINV_DAY= pt wFIRM_SIZE LNGDP UNEMPLOYMENT  INFLATION 
		wTANGIBILITY FCF wLOG_MVE wCAP_INT wGRO_MAR/ tol vif collin;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now I want to run where INDC3="RTLS".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please hint me to sort it out?&lt;/P&gt;
&lt;P&gt;Warmest regards and thanks,&lt;/P&gt;
&lt;P&gt;Phil.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Your question includes the answer.&amp;nbsp; Just use a WHERE statement.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where INDC3="RTLS";&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 02 May 2021 22:33:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-run-proc-reg-with-a-subsample-without-creating-a/m-p/738449#M80478</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-05-02T22:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to run proc reg with a subsample without creating a subsample?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-run-proc-reg-with-a-subsample-without-creating-a/m-p/738474#M80486</link>
      <description>&lt;OL&gt;
&lt;LI&gt;Data set option of WHERE&lt;/LI&gt;
&lt;LI&gt;WHERE in the data step&lt;/LI&gt;
&lt;LI&gt;Creation of a view, which doesn't create the view until you run it.&amp;nbsp;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;1 &amp;amp; 2 are available in almost ALL process in SAS.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You've seen examples of all in the past few months so I assume you know how to code them.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/212695"&gt;@Phil_NZ&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi all SAS Users,&lt;/P&gt;
&lt;P&gt;Have a nice week,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Today I want to run PROC REG with a subsample, I know one way is to create a subsample and run PROC REG, but I wondering if there is any way to run directly in PROC REG procedure without another data step for creating a subsample.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My code of running for the WHOLE sample as below:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc reg data=merge_treat_con_copy;
	model wINV_DAY= pt wFIRM_SIZE LNGDP UNEMPLOYMENT  INFLATION 
		wTANGIBILITY FCF wLOG_MVE wCAP_INT wGRO_MAR/ tol vif collin;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now I want to run where INDC3="RTLS".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please hint me to sort it out?&lt;/P&gt;
&lt;P&gt;Warmest regards and thanks,&lt;/P&gt;
&lt;P&gt;Phil.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 May 2021 03:03:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-run-proc-reg-with-a-subsample-without-creating-a/m-p/738474#M80486</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-05-03T03:03:03Z</dc:date>
    </item>
  </channel>
</rss>

