<?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: forecasting with categorical variables in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/forecasting-with-categorical-variables/m-p/653978#M3853</link>
    <description>&lt;P&gt;Class statement in Proc Autoreg is experimental now. However you could fit models with categorical variables just like GLM using the class statement. You could also try any potential interactions with the class statement. Make sure use appropriate AR terms to accomadate autocorrelation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 07 Jun 2020 01:57:53 GMT</pubDate>
    <dc:creator>gcjfernandez</dc:creator>
    <dc:date>2020-06-07T01:57:53Z</dc:date>
    <item>
      <title>forecasting with categorical variables</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/forecasting-with-categorical-variables/m-p/651788#M3847</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a time series with the following independent variables:&lt;/P&gt;
&lt;P&gt;time, vendor, product, miles driven&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;time is the time variable (1,2,3,... corresponding to months)&lt;/P&gt;
&lt;P&gt;vendor and product are categorical variables&lt;/P&gt;
&lt;P&gt;miles driven is a quantitative variable&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Will it be statistically correct if I did the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt;proc autoreg data=MyData;
 class vendor product;
model sales = vendor product miles_driven;
 run; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Its just that the few times when I did time series I only had time as an independent variable, but here there are categorical and quantitative variables as well so I just want to make sure that using the proc autoreg will yield meaningful results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2020 17:13:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/forecasting-with-categorical-variables/m-p/651788#M3847</guid>
      <dc:creator>ilikesas</dc:creator>
      <dc:date>2020-05-29T17:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: forecasting with categorical variables</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/forecasting-with-categorical-variables/m-p/653978#M3853</link>
      <description>&lt;P&gt;Class statement in Proc Autoreg is experimental now. However you could fit models with categorical variables just like GLM using the class statement. You could also try any potential interactions with the class statement. Make sure use appropriate AR terms to accomadate autocorrelation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jun 2020 01:57:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/forecasting-with-categorical-variables/m-p/653978#M3853</guid>
      <dc:creator>gcjfernandez</dc:creator>
      <dc:date>2020-06-07T01:57:53Z</dc:date>
    </item>
  </channel>
</rss>

