<?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 Regress two models in one proc reg procedure and output to two different files in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Regress-two-models-in-one-proc-reg-procedure-and-output-to-two/m-p/81977#M23591</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a dataset including independent variables x1-x5, and dependent variable y. I want to do two regressions, y on x1, x2, and x3, and the other regression with y on x4 and x5. Can I use one proc reg command to do two regressions and output to two different files. Something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc reg data=file outest=model1 model2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model y=x1 x2 x3;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model y=x4 x5;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, is it easy to output estimates to one data file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Jul 2013 06:56:49 GMT</pubDate>
    <dc:creator>SeanZ</dc:creator>
    <dc:date>2013-07-17T06:56:49Z</dc:date>
    <item>
      <title>Regress two models in one proc reg procedure and output to two different files</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Regress-two-models-in-one-proc-reg-procedure-and-output-to-two/m-p/81977#M23591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a dataset including independent variables x1-x5, and dependent variable y. I want to do two regressions, y on x1, x2, and x3, and the other regression with y on x4 and x5. Can I use one proc reg command to do two regressions and output to two different files. Something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc reg data=file outest=model1 model2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model y=x1 x2 x3;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model y=x4 x5;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, is it easy to output estimates to one data file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2013 06:56:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Regress-two-models-in-one-proc-reg-procedure-and-output-to-two/m-p/81977#M23591</guid>
      <dc:creator>SeanZ</dc:creator>
      <dc:date>2013-07-17T06:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: Regress two models in one proc reg procedure and output to two different files</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Regress-two-models-in-one-proc-reg-procedure-and-output-to-two/m-p/81978#M23592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sean,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the documentation. &lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/statug/63347/HTML/default/viewer.htm#statug_reg_sect028.htm#statug.reg.regoutest" title="http://support.sas.com/documentation/cdl/en/statug/63347/HTML/default/viewer.htm#statug_reg_sect028.htm#statug.reg.regoutest"&gt;SAS/STAT(R) 9.22 User's Guide&lt;/A&gt;&lt;/P&gt;&lt;P&gt;REG outputs just one file with a model indicator variable.&amp;nbsp; You can break it apart in another step.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2013 17:18:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Regress-two-models-in-one-proc-reg-procedure-and-output-to-two/m-p/81978#M23592</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2013-07-17T17:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: Regress two models in one proc reg procedure and output to two different files</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Regress-two-models-in-one-proc-reg-procedure-and-output-to-two/m-p/81979#M23593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2013 21:16:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Regress-two-models-in-one-proc-reg-procedure-and-output-to-two/m-p/81979#M23593</guid>
      <dc:creator>SeanZ</dc:creator>
      <dc:date>2013-07-17T21:16:44Z</dc:date>
    </item>
  </channel>
</rss>

