<?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 changing the list of independent variables in stepwise regression in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/changing-the-list-of-independent-variables-in-stepwise/m-p/166827#M32131</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to run two stepwise regressions sequentially. The first includes a set of indep variables X1, X2, and X3. Once I know which of those are meaningful, I want to estimate a second regression that includes the ones that are meaningful plus a number of other independent variables (X4, X5, X6).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, the first stage regression is:&lt;/P&gt;&lt;P&gt;proc reg outest=model_coef; model Y=X1 X2 X3 / selection=stepwise; by firm;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For firm A, only X1 is meaningful&lt;/P&gt;&lt;P&gt;For firm B, X1 and X3 are meaningful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus, I'd like the second regression to read:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For firm A: proc reg; model Y=X1 X4 X5 X6 / selection=stepwise include=1;&lt;/P&gt;&lt;P&gt;For firm B: proc reg; model Y=X1 X3 X4 X5 X6 / selection=stepwise include=2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that the regression for B has two changes from the regression for A - the list of independent variables changes, and the "include" number changes from 1 to 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can, of course, see which variables enter the model (from outest=model_coef), but I can seem to figure out how to move from that information to the second stage regression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions? Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Jul 2014 15:13:07 GMT</pubDate>
    <dc:creator>coug914</dc:creator>
    <dc:date>2014-07-04T15:13:07Z</dc:date>
    <item>
      <title>changing the list of independent variables in stepwise regression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/changing-the-list-of-independent-variables-in-stepwise/m-p/166827#M32131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to run two stepwise regressions sequentially. The first includes a set of indep variables X1, X2, and X3. Once I know which of those are meaningful, I want to estimate a second regression that includes the ones that are meaningful plus a number of other independent variables (X4, X5, X6).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, the first stage regression is:&lt;/P&gt;&lt;P&gt;proc reg outest=model_coef; model Y=X1 X2 X3 / selection=stepwise; by firm;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For firm A, only X1 is meaningful&lt;/P&gt;&lt;P&gt;For firm B, X1 and X3 are meaningful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus, I'd like the second regression to read:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For firm A: proc reg; model Y=X1 X4 X5 X6 / selection=stepwise include=1;&lt;/P&gt;&lt;P&gt;For firm B: proc reg; model Y=X1 X3 X4 X5 X6 / selection=stepwise include=2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that the regression for B has two changes from the regression for A - the list of independent variables changes, and the "include" number changes from 1 to 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can, of course, see which variables enter the model (from outest=model_coef), but I can seem to figure out how to move from that information to the second stage regression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions? Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2014 15:13:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/changing-the-list-of-independent-variables-in-stepwise/m-p/166827#M32131</guid>
      <dc:creator>coug914</dc:creator>
      <dc:date>2014-07-04T15:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: changing the list of independent variables in stepwise regression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/changing-the-list-of-independent-variables-in-stepwise/m-p/166828#M32132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How you determine variables X1,X3 are meaningful based on first regression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2014 15:32:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/changing-the-list-of-independent-variables-in-stepwise/m-p/166828#M32132</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2014-07-04T15:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: changing the list of independent variables in stepwise regression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/changing-the-list-of-independent-variables-in-stepwise/m-p/166829#M32133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The default " /selection=stepwise " requires a variable to statistically significant at the 0.15 level for entry into the model.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2014 15:38:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/changing-the-list-of-independent-variables-in-stepwise/m-p/166829#M32133</guid>
      <dc:creator>coug914</dc:creator>
      <dc:date>2014-07-04T15:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: changing the list of independent variables in stepwise regression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/changing-the-list-of-independent-variables-in-stepwise/m-p/166830#M32134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right, this is the internal processing of proc reg to include an independent variable in the model. My question was relating to X1 and X3, which are being considering to include in the second step regression. How will you decide these variables should go to the second step regression? This will give some baseline to filter these variable from the first step regression which is your requirement right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2014 15:51:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/changing-the-list-of-independent-variables-in-stepwise/m-p/166830#M32134</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2014-07-04T15:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: changing the list of independent variables in stepwise regression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/changing-the-list-of-independent-variables-in-stepwise/m-p/166831#M32135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps I am misunderstanding your question. The results from the first step might look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obs&amp;nbsp;&amp;nbsp; _MODEL_&amp;nbsp;&amp;nbsp; _TYPE_&amp;nbsp;&amp;nbsp; _DEPVAR_&amp;nbsp;&amp;nbsp;&amp;nbsp; _RMSE_&amp;nbsp;&amp;nbsp;&amp;nbsp; Intercept&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; y&amp;nbsp;&amp;nbsp; _IN_&amp;nbsp;&amp;nbsp; _P_&amp;nbsp;&amp;nbsp; _EDF_&amp;nbsp;&amp;nbsp;&amp;nbsp; _RSQ_&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; MODEL1&amp;nbsp;&amp;nbsp;&amp;nbsp; PARMS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; y&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.094107&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.010854&amp;nbsp;&amp;nbsp; 0.83273&amp;nbsp;&amp;nbsp;&amp;nbsp; .&amp;nbsp;&amp;nbsp; -0.44081&amp;nbsp;&amp;nbsp; -1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 33&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.47322&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, SAS tells me that variables X1 and X3 are included in the first step regression and I would now like to include them in the second step regression. I was thinking I might be able to create macro variables based on that output (a list of the meaningful variables and the number of meaningful variables) and then feed that list back into the second step regression. I can create those variables, but I can't figure out how to feed it back in. I'm wide open to any other ideas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2014 16:00:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/changing-the-list-of-independent-variables-in-stepwise/m-p/166831#M32135</guid>
      <dc:creator>coug914</dc:creator>
      <dc:date>2014-07-04T16:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: changing the list of independent variables in stepwise regression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/changing-the-list-of-independent-variables-in-stepwise/m-p/166832#M32136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now this is more clear. Idea is right just make a macro variable to assign variables X1 and X3 and put them back in the second step regression like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc reg; model Y=&amp;amp;vars X4 X5 X6 / selection=stepwise include=2;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2014 16:42:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/changing-the-list-of-independent-variables-in-stepwise/m-p/166832#M32136</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2014-07-04T16:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: changing the list of independent variables in stepwise regression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/changing-the-list-of-independent-variables-in-stepwise/m-p/166833#M32137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's the part I'm having an issue with. For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test1; set test0; &lt;/P&gt;&lt;P&gt;proc reg outest=outtest1; model y=x1 x2 x3 / Selection=Stepwise rsquare;&amp;nbsp; by firm_id;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test2; set outtest1;&lt;/P&gt;&lt;P&gt;if X1 ne . then X1_in_model='X1 ';&lt;/P&gt;&lt;P&gt;if X2 ne . then X2_in_model='X2 ';&lt;/P&gt;&lt;P&gt;if X3 ne . then X3_in_model='X3 ';&lt;/P&gt;&lt;P&gt;vars=cat(X1_in_model,X2_in_model,X3_in_model);&lt;/P&gt;&lt;P&gt;numvars=n(X1,X2,X3);&lt;/P&gt;&lt;P&gt;%let macrovar=vars;&lt;/P&gt;&lt;P&gt;%let macronum=numvars;&lt;/P&gt;&lt;P&gt;keep firm_id &amp;amp;macrovar &amp;amp;macronum;&lt;/P&gt;&lt;P&gt;proc print; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*************&lt;/P&gt;&lt;P&gt;the output here looks this:&lt;/P&gt;&lt;P&gt;Obs&amp;nbsp;&amp;nbsp;&amp;nbsp; firm_id&amp;nbsp;&amp;nbsp;&amp;nbsp; vars&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; numvars&lt;/P&gt;&lt;P&gt; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 70740&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X1&amp;nbsp;&amp;nbsp;&amp;nbsp; X3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 75160&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X1&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&lt;/P&gt;&lt;P&gt; 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 76695&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X1 X2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;************/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*now how do i get those variables back into the next regression? This does not work (since it sees "vars" as data rather than variable names). Any suggestions? ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test4; merge test1 test2; by firm_id;&lt;/P&gt;&lt;P&gt;proc reg outest=outest4; model y=&amp;amp;macrovar X4 X5 X6 / selection=stepwise include=&amp;amp;macronum;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2014 17:53:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/changing-the-list-of-independent-variables-in-stepwise/m-p/166833#M32137</guid>
      <dc:creator>coug914</dc:creator>
      <dc:date>2014-07-04T17:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: changing the list of independent variables in stepwise regression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/changing-the-list-of-independent-variables-in-stepwise/m-p/166834#M32138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this way.&lt;/P&gt;&lt;P&gt;data test4; merge test1 test2; by firm_id;&lt;/P&gt;&lt;P&gt;proc reg data=test4 outest=outest4; model y=&amp;amp;macrovar X4 X5 X6 / selection=stepwise include=&amp;amp;macronum;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2014 18:39:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/changing-the-list-of-independent-variables-in-stepwise/m-p/166834#M32138</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2014-07-04T18:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: changing the list of independent variables in stepwise regression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/changing-the-list-of-independent-variables-in-stepwise/m-p/166835#M32139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Isn't that the same as I had?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Results in same error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;593&amp;nbsp; proc reg data=test4 outest=outest4; model y=&amp;amp;macrovar X4 X5 X6 / selection=stepwise include=&amp;amp;macronum;&lt;/P&gt;&lt;P&gt;ERROR: Variable vars in list does not match type prescribed for this list.&lt;/P&gt;&lt;P&gt;NOTE: Line generated by the macro variable "MACRONUM".&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp; numvars&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 22&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 202&lt;/P&gt;&lt;P&gt;ERROR 22-322: Expecting an integer constant.&lt;/P&gt;&lt;P&gt;ERROR 202-322: The option or parameter is not recognized and will be ignored.&lt;/P&gt;&lt;P&gt;594&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;NOTE: The previous statement has been deleted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WARNING: The variable _NAME_ or _TYPE_ exists in a data set that is not TYPE=CORR, COV, SSCP, etc.&lt;/P&gt;&lt;P&gt;WARNING: No variables specified for an SSCP matrix. Execution terminating.&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE REG used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.01 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.01 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.OUTEST4 has 0 observations and 4 variables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2014 18:42:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/changing-the-list-of-independent-variables-in-stepwise/m-p/166835#M32139</guid>
      <dc:creator>coug914</dc:creator>
      <dc:date>2014-07-04T18:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: changing the list of independent variables in stepwise regression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/changing-the-list-of-independent-variables-in-stepwise/m-p/166836#M32140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem is with your macro variables. I've made some changes in data step (highlighted) run this to have your macro variables populated then proceed to proc reg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test2; set outtest1;&lt;/P&gt;&lt;P&gt;if X1 ne . then X1_in_model='X1 ';&lt;/P&gt;&lt;P&gt;if X2 ne . then X2_in_model='X2 ';&lt;/P&gt;&lt;P&gt;if X3 ne . then X3_in_model='X3 ';&lt;/P&gt;&lt;P&gt;vars=cat(X1_in_model,X2_in_model,X3_in_model);&lt;/P&gt;&lt;P&gt;numvars=n(X1,X2,X3);&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;call symputx('macrovar',vars);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;call symputx('macronum',numvars);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;keep firm_id &amp;amp;macrovar &amp;amp;macronum;&lt;/P&gt;&lt;P&gt;proc print; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2014 19:15:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/changing-the-list-of-independent-variables-in-stepwise/m-p/166836#M32140</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2014-07-04T19:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: changing the list of independent variables in stepwise regression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/changing-the-list-of-independent-variables-in-stepwise/m-p/166837#M32141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. Very helpful. Reading about the call symputx - although I'ms still no sure I fully understand what's going on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what's the difference between &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;%let macrovar=vars;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;and &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;call symputx('macrovar',vars);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reading about call symputx it says it creates a macro variable called macrovar from vars. How is that different from the %let?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your help on this!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2014 19:35:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/changing-the-list-of-independent-variables-in-stepwise/m-p/166837#M32141</guid>
      <dc:creator>coug914</dc:creator>
      <dc:date>2014-07-04T19:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: changing the list of independent variables in stepwise regression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/changing-the-list-of-independent-variables-in-stepwise/m-p/166838#M32142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;symputx assigns value produced in a DATA step to a macro-variable. %LET is used in open code, not inside a datastep or proc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2014 19:52:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/changing-the-list-of-independent-variables-in-stepwise/m-p/166838#M32142</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2014-07-04T19:52:32Z</dc:date>
    </item>
  </channel>
</rss>

