<?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 Proc Reg Forcing Variable in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-Forcing-Variable/m-p/846300#M41891</link>
    <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to fit a regression model in sas to a default series using macroeconomic variables. I have 6 potential macro variables. 3 of these should be forced to be in the model (gdp, cpi and prime).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 24 lags on each of&amp;nbsp; the variables (i.e. gdp lag1, gdp lag2 .... gdp lag 24). I would like to force the 3 core variables (gdp, cpi, prime) or any of their variables (lag1 - lag 24) into the model while testing the remaining 3 variables (hddi, hpi and vsr) to get the best fit. I'm allowing for 6 variables in the model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thus, I'm looking for a potential model that looks like this (for example)&lt;/P&gt;&lt;P&gt;def_rate = gdp_lag18 + prime_lag2 + cpi_lag6 + hddi_lag12&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;def_rate = gdp_lag8 + prime_lag15 + cpi_lag8 + hddi_lag2 + hpi_lag1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Point is I would like to force the proc regression model to include the 3 core macrovariables and any of their variants. Does anyone know an easy way to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm aware of the include= function, but I don't think you can specify either/or in the option (for instance it can be GDP_lag 2 or GDP_Lag15 ,but must include GDP, prime and cpi)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know one can also output every model possible by not specifying in the best =&amp;nbsp; function, and then filter on your output, just don't think this is the optimal method because you will be fitting thousands of models.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&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, 25 Nov 2022 11:16:34 GMT</pubDate>
    <dc:creator>Giraffe123</dc:creator>
    <dc:date>2022-11-25T11:16:34Z</dc:date>
    <item>
      <title>Proc Reg Forcing Variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-Forcing-Variable/m-p/846300#M41891</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to fit a regression model in sas to a default series using macroeconomic variables. I have 6 potential macro variables. 3 of these should be forced to be in the model (gdp, cpi and prime).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 24 lags on each of&amp;nbsp; the variables (i.e. gdp lag1, gdp lag2 .... gdp lag 24). I would like to force the 3 core variables (gdp, cpi, prime) or any of their variables (lag1 - lag 24) into the model while testing the remaining 3 variables (hddi, hpi and vsr) to get the best fit. I'm allowing for 6 variables in the model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thus, I'm looking for a potential model that looks like this (for example)&lt;/P&gt;&lt;P&gt;def_rate = gdp_lag18 + prime_lag2 + cpi_lag6 + hddi_lag12&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;def_rate = gdp_lag8 + prime_lag15 + cpi_lag8 + hddi_lag2 + hpi_lag1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Point is I would like to force the proc regression model to include the 3 core macrovariables and any of their variants. Does anyone know an easy way to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm aware of the include= function, but I don't think you can specify either/or in the option (for instance it can be GDP_lag 2 or GDP_Lag15 ,but must include GDP, prime and cpi)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know one can also output every model possible by not specifying in the best =&amp;nbsp; function, and then filter on your output, just don't think this is the optimal method because you will be fitting thousands of models.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&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, 25 Nov 2022 11:16:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-Forcing-Variable/m-p/846300#M41891</guid>
      <dc:creator>Giraffe123</dc:creator>
      <dc:date>2022-11-25T11:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Reg Forcing Variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-Forcing-Variable/m-p/846301#M41892</link>
      <description>&lt;P&gt;You might want to try the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_reg_syntax08.htm#statug.reg.modelgroupnames" target="_self"&gt;GROUPNAMES=&lt;/A&gt; option in MODEL statement of PROC REG. That may or may not do what you are asking.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A better solution, in my opinion, is to fit a Partial Least Squares model (PROC PLS) and then all of your variables are included in the model, in such a way that the effect of multi-collinearity is reduced. See &lt;A href="http://www.remspec.com/Papers/pls.pdf" target="_self"&gt;here&lt;/A&gt; for an example of a PLS model which had 1000 highly correlated predictor variables and used them all and produced a usable model. One benefit is that all this effort to select variables to put into the model is eliminated or reduced.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 11:42:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-Forcing-Variable/m-p/846301#M41892</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-11-25T11:42:53Z</dc:date>
    </item>
  </channel>
</rss>

