<?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: Time Series Data with both Daily and Monthly Variables in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Time-Series-Data-with-both-Daily-and-Monthly-Variables/m-p/486788#M3255</link>
    <description>&lt;P&gt;I see what you mean, but even if I group it, the same problem remains, which is that for each day within the month, the income will be the same, a constant within a month. So the temperature and number of people vary by day, while income by month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Aug 2018 19:29:29 GMT</pubDate>
    <dc:creator>BlueNose</dc:creator>
    <dc:date>2018-08-14T19:29:29Z</dc:date>
    <item>
      <title>Time Series Data with both Daily and Monthly Variables</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Time-Series-Data-with-both-Daily-and-Monthly-Variables/m-p/486584#M3253</link>
      <description>&lt;P&gt;Dear all,&lt;BR /&gt;&lt;BR /&gt;I have daily data on how many people entered a certain shopping center, and the weather on that day (temperature). I wish to find out if there is a relation between the weather and the number of people who entered the shopping center.&lt;BR /&gt;&lt;BR /&gt;In addition, I have covariates such as the average income in that region.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Number of people entering the shopping center (daily)&lt;/LI&gt;&lt;LI&gt;Temperature (daily)&lt;/LI&gt;&lt;LI&gt;Mean monthly income in the region (monthly)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is, the covariates, such as mean income, are monthly, not daily. So for my main dependent and independent variables, I have a daily time series, while the covariates are monthly.&lt;BR /&gt;&lt;BR /&gt;How should I handle this situation ?&lt;BR /&gt;&lt;BR /&gt;I thought of several options, not sure which is best:&lt;BR /&gt;&lt;BR /&gt;1. Aggregate the daily variables using means, to make them monthly - I will lose information&lt;BR /&gt;2. Make the monthly data daily, i.e., for each day in this month, the income will be the same. This will lead to a model with random effect, won't it ?&lt;BR /&gt;&lt;BR /&gt;How would you handle this problem and which model would you use ? (regression, time series, mixed model)&lt;BR /&gt;&lt;BR /&gt;Thank you in advance !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Using SAS 9.4)&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 08:51:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Time-Series-Data-with-both-Daily-and-Monthly-Variables/m-p/486584#M3253</guid>
      <dc:creator>BlueNose</dc:creator>
      <dc:date>2018-08-14T08:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: Time Series Data with both Daily and Monthly Variables</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Time-Series-Data-with-both-Daily-and-Monthly-Variables/m-p/486609#M3254</link>
      <description>&lt;P&gt;Do you find monthly variations in the regional income? To me it could very well be treated as a constant and hence you may use the temperature alone. If there is wide monthly variations, you may group income into 4 or 5 groups which may yield to Analysis of Covariance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;DATASP&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 10:50:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Time-Series-Data-with-both-Daily-and-Monthly-Variables/m-p/486609#M3254</guid>
      <dc:creator>KachiM</dc:creator>
      <dc:date>2018-08-14T10:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Time Series Data with both Daily and Monthly Variables</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Time-Series-Data-with-both-Daily-and-Monthly-Variables/m-p/486788#M3255</link>
      <description>&lt;P&gt;I see what you mean, but even if I group it, the same problem remains, which is that for each day within the month, the income will be the same, a constant within a month. So the temperature and number of people vary by day, while income by month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 19:29:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Time-Series-Data-with-both-Daily-and-Monthly-Variables/m-p/486788#M3255</guid>
      <dc:creator>BlueNose</dc:creator>
      <dc:date>2018-08-14T19:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: Time Series Data with both Daily and Monthly Variables</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Time-Series-Data-with-both-Daily-and-Monthly-Variables/m-p/486878#M3256</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was thinking like:&lt;/P&gt;
&lt;P&gt;Suppose you have made 3 groups. Then you will have a linear regression for temperature with the number of people for each group.&lt;/P&gt;
&lt;P&gt;Compare the slopes and intercepts using Analysis of Covariance.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 01:08:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Time-Series-Data-with-both-Daily-and-Monthly-Variables/m-p/486878#M3256</guid>
      <dc:creator>KachiM</dc:creator>
      <dc:date>2018-08-15T01:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: Time Series Data with both Daily and Monthly Variables</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Time-Series-Data-with-both-Daily-and-Monthly-Variables/m-p/487551#M3257</link>
      <description>&lt;P&gt;From your description I feel that a time series model could be a reasonable choice.&amp;nbsp; Time series models will permit the capturing of time varying level, day of the week seasonality, and regression effects like temperature and the monthly income.&amp;nbsp; The issue of monthly income being constant during the days of a month is not particularly troublesome, as long as it is an informative predictor for the overall series.&amp;nbsp; You could use procedures such as ARIMA, AUTOREG, or UCM in SAS/ETS for such analysis.&amp;nbsp; Just to get you started, I am going to provide a sample program for UCM.&amp;nbsp; Assume that your daily data are stored in a data set "shopping" and has the following columns: date, NPeople, temp, and income.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc ucm data=shopping;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; id date interval=day;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; model&amp;nbsp;&lt;SPAN&gt;NPeople&lt;/SPAN&gt; = temp income;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; /* specifies a smooth trend component */&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; level variance=0 noest plot=smooth;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; slope;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;SPAN&gt;/* specifies a&amp;nbsp;day of the week component */&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; season length=7 type=trig plot=smooth;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; /* noise component */&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; irregular;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; /* residual diagnostics */&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; estimate plot=panel;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; forecast plot=(forecasts decomp);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your example,&lt;SPAN&gt; the temp effect could be nonlinear.&amp;nbsp; You could capture that by using the SPLINEREG statement (see "Example 42.6 Using Splines to Incorporate Nonlinear Effects" in the UCM doc:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://go.documentation.sas.com/?docsetId=etsug&amp;amp;docsetTarget=etsug_ucm_examples06.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en" target="_blank"&gt;https://go.documentation.sas.com/?docsetId=etsug&amp;amp;docsetTarget=etsug_ucm_examples06.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en&lt;/A&gt; ).&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Aug 2018 19:01:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Time-Series-Data-with-both-Daily-and-Monthly-Variables/m-p/487551#M3257</guid>
      <dc:creator>rselukar</dc:creator>
      <dc:date>2018-08-16T19:01:27Z</dc:date>
    </item>
  </channel>
</rss>

