<?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: Regression, How do I Enter Blocks of Variables? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Regression-How-do-I-Enter-Blocks-of-Variables/m-p/548876#M152259</link>
    <description>&lt;P&gt;There's no parenthesis around the "blocks" in SAS PROC REG.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just enter the variable names in one block, run the model, then fit another model with the variables from two blocks, and compare. One way to compare the models is the "&lt;A href="http://www.jerrydallal.com/LHSP/extra.htm" target="_self"&gt;Extra Sum of Squares Principle&lt;/A&gt;".&lt;/P&gt;</description>
    <pubDate>Fri, 05 Apr 2019 18:48:37 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2019-04-05T18:48:37Z</dc:date>
    <item>
      <title>Regression, How do I Enter Blocks of Variables?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regression-How-do-I-Enter-Blocks-of-Variables/m-p/548872#M152257</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to enter variables in blocks using SAS 9.4&amp;nbsp;in a way analogous to how SPSS does this.&amp;nbsp; Here are the variables in this simplified example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dependent:&amp;nbsp; Anxiety Test Score,&amp;nbsp; "ANX"&lt;/P&gt;&lt;P&gt;Independent:&amp;nbsp; Age, Gender, Education,&amp;nbsp;&amp;nbsp;Depression Measure score&amp;nbsp;("Depres"), Coping Measure score ("Cope").&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I'd like to do is&amp;nbsp;regress "ANX" on "Depres" and"Cope,"&amp;nbsp;entered together as one "block" of variables," then in the same modelion, regress ANX on a second block of variables, "Age," "Gender," and "Education."&amp;nbsp; In this way, I can tell if the relationship between "ANX" and the first variable block (psychological test scores)&amp;nbsp;changes when I introduce the second block (demographic variables).&amp;nbsp; I'm not really interested in doing stepwise regression (i.e., forward or backward selection), just this fairly simple analysis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All I can tell from the documentation is that perhaps I indicate blocks by putting parentheses around the blocks of variables, but I'm not really sure if this is correct.&amp;nbsp; Could anyone help me with this simple, I think, ,problem?&amp;nbsp; This following states the problem in (sort of) SAS language.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc reg data=Cohort.Anxiety; model Anx = (&lt;FONT face="batang,apple gothic"&gt;enter first block of variables&lt;/FONT&gt;); &lt;FONT face="batang,apple gothic"&gt;(enter second block of variables&lt;/FONT&gt;); run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much!&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>Fri, 05 Apr 2019 18:36:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regression-How-do-I-Enter-Blocks-of-Variables/m-p/548872#M152257</guid>
      <dc:creator>magman</dc:creator>
      <dc:date>2019-04-05T18:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: Regression, How do I Enter Blocks of Variables?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regression-How-do-I-Enter-Blocks-of-Variables/m-p/548876#M152259</link>
      <description>&lt;P&gt;There's no parenthesis around the "blocks" in SAS PROC REG.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just enter the variable names in one block, run the model, then fit another model with the variables from two blocks, and compare. One way to compare the models is the "&lt;A href="http://www.jerrydallal.com/LHSP/extra.htm" target="_self"&gt;Extra Sum of Squares Principle&lt;/A&gt;".&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 18:48:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regression-How-do-I-Enter-Blocks-of-Variables/m-p/548876#M152259</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-04-05T18:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Regression, How do I Enter Blocks of Variables?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regression-How-do-I-Enter-Blocks-of-Variables/m-p/548949#M152269</link>
      <description>Thank you very much for your solution! Very appreciated!&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Apr 2019 20:22:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regression-How-do-I-Enter-Blocks-of-Variables/m-p/548949#M152269</guid>
      <dc:creator>magman</dc:creator>
      <dc:date>2019-04-05T20:22:18Z</dc:date>
    </item>
  </channel>
</rss>

