<?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: multiple linear regression in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/multiple-linear-regression/m-p/373300#M19536</link>
    <description>&lt;P&gt;this is nice But I got another approach. Since my independent vars change as data change. I create a macro var and&amp;nbsp;store the independent vars in a macro var, then I don't have to worry about this even my data change.&lt;/P&gt;&lt;P&gt;proc contents daa=For_Reg out=stuff;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc sql noprint;&lt;/P&gt;&lt;P&gt;&amp;nbsp; select distinct name&lt;/P&gt;&lt;P&gt;&amp;nbsp; into Var separated by ' '&lt;/P&gt;&lt;P&gt;&amp;nbsp; from stuff whewe type=2 and name not EQ 'LN_ADJ-Cost';&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jul 2017 14:21:54 GMT</pubDate>
    <dc:creator>zhuxiaoyan1</dc:creator>
    <dc:date>2017-07-05T14:21:54Z</dc:date>
    <item>
      <title>multiple linear regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/multiple-linear-regression/m-p/371462#M19534</link>
      <description>&lt;P&gt;I need to do a linear regression. I have about 30 independent variables in a sas data set. Is there a way to put those variables in the model statement without typing them?&lt;/P&gt;&lt;P&gt;LN_ADJ_Cost ADH CFA Pneu Diabetes ........and much more columns&lt;/P&gt;&lt;P&gt;465&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;543&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp; proc reg data=cost;&lt;/P&gt;&lt;P&gt;&amp;nbsp; model&amp;nbsp; LN_ADJ_Cost= ADH CFA Pneu Diabetes .......... / selection=backward sls=0.5 collin VIF;&lt;/P&gt;&lt;P&gt;run; quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 21:13:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/multiple-linear-regression/m-p/371462#M19534</guid>
      <dc:creator>zhuxiaoyan1</dc:creator>
      <dc:date>2017-06-28T21:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: multiple linear regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/multiple-linear-regression/m-p/371475#M19535</link>
      <description>&lt;P&gt;I am assuming your variables weren't named ahead of time to use the Var1 - Var30 list notation.&lt;/P&gt;
&lt;P&gt;If your variables have common name stems, the first letters are in common the you could use the : variable list notation&amp;nbsp; ADH: would include all variables whose names&amp;nbsp;start with ADH.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the variables are next to each other in the data set such as column 5 through (something larger than 5) you can use the double dash to indicate them&amp;nbsp;&amp;nbsp; Var1 -- adh57 would get all the variables adjacent with var1 and adh57 included. If you have multiple blocks you could use more than one set of these:&amp;nbsp;&amp;nbsp; Var1 -- adh57&amp;nbsp;&amp;nbsp; pdq -- xyz would the variables from pdq to xyz that are adjacent to the list from the first bit.&lt;/P&gt;
&lt;P&gt;If some of your variables are named Varxx to Varyy with x and y numers you can use Varxx-Varyy mixed with the other lists bits.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 22:20:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/multiple-linear-regression/m-p/371475#M19535</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-06-28T22:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: multiple linear regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/multiple-linear-regression/m-p/373300#M19536</link>
      <description>&lt;P&gt;this is nice But I got another approach. Since my independent vars change as data change. I create a macro var and&amp;nbsp;store the independent vars in a macro var, then I don't have to worry about this even my data change.&lt;/P&gt;&lt;P&gt;proc contents daa=For_Reg out=stuff;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc sql noprint;&lt;/P&gt;&lt;P&gt;&amp;nbsp; select distinct name&lt;/P&gt;&lt;P&gt;&amp;nbsp; into Var separated by ' '&lt;/P&gt;&lt;P&gt;&amp;nbsp; from stuff whewe type=2 and name not EQ 'LN_ADJ-Cost';&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2017 14:21:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/multiple-linear-regression/m-p/373300#M19536</guid>
      <dc:creator>zhuxiaoyan1</dc:creator>
      <dc:date>2017-07-05T14:21:54Z</dc:date>
    </item>
  </channel>
</rss>

