<?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: data set for &amp;quot;simulation models ..&amp;quot; by Erdman in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/data-set-for-quot-simulation-models-quot-by-Erdman/m-p/503064#M3375</link>
    <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13094"&gt;@user24feb&lt;/a&gt;, I contacted the&amp;nbsp;author of the paper and was told it's fake data. But he did provide the code. Hope it helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Shelley&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data toast;
    tsales =870;
    fs_sales =470;
    fs_price =10;
    gnp = 0.5;
    price = 10.1;
    do t=1 to 50;
       month = t;
       price = price * 0.8 + 1.5 * rannor(52) + 1.5;
       fs_price = 0.7 * fs_price + 15.1 + 5 * rannor(5);
       bprice = 0.1 + 0.01 * rannor(2);
       gnp =  0.8 * gnp  + 0.7 *rannor(156) + 1;
       nwed = 4 * sin(t/5) + 25 + 3*rannor(644);
       tsales = 0.91 *tsales - 18.5 * price ** 1.2 +
             13 *nwed + 10 * gnp + 30;
       fs_sales = 0.9 * fs_sales - fs_price ** 0.5 +
             18 * gnp + 50 ;
       if t &amp;gt;= 15 and t &amp;lt; 20 then tsales = tsales + 250;
       if t &amp;gt;= 35 and t &amp;lt; 40 then tsales = tsales + 290;

       if t &amp;gt;= 15 and t &amp;lt; 20 then fs_sales = fs_sales + 150;
       if t &amp;gt;= 35 and t &amp;lt; 40 then fs_sales = fs_sales + 190;

       ad_cost =0;
       if t &amp;gt;= 15 and t &amp;lt; 20 then ad_cost = 5000;
       if t &amp;gt;= 35 and t &amp;lt; 40 then ad_cost = 8000;

       tsales = (tsales - 0.01 * fs_sales) /0.9995;
       fs_sales = fs_sales - 0.015 * tsales;
       tsales = tsales + 20*rannor(7);
       fs_sales = fs_sales + 8*rannor(66);

       output;
    end;
run;


title height=4 'Monthly Toaster Sales';
proc gplot data=toast;
   axis1  value=(height=3) label=(height=3  'Months');
   axis2 value=(height=3) label=(height=3  'TSales');
   plot tsales*month / haxis=axis1 vaxis=axis2;
   symbol1 width=2 i=join ;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 10 Oct 2018 13:03:31 GMT</pubDate>
    <dc:creator>ShelleySessoms</dc:creator>
    <dc:date>2018-10-10T13:03:31Z</dc:date>
    <item>
      <title>data set for "simulation models .." by Erdman</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/data-set-for-quot-simulation-models-quot-by-Erdman/m-p/503001#M3374</link>
      <description>&lt;P&gt;I'd like to try some of the examples in "simulation models for business planning and economic forecasting" ( &lt;A href="https://support.sas.com/rnd/app/ets/papers/simulationmodels.pdf" target="_blank"&gt;https://support.sas.com/rnd/app/ets/papers/simulationmodels.pdf&lt;/A&gt; ). Does anybody know where to find the sales-toaster-data?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2018 08:38:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/data-set-for-quot-simulation-models-quot-by-Erdman/m-p/503001#M3374</guid>
      <dc:creator>user24feb</dc:creator>
      <dc:date>2018-10-10T08:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: data set for "simulation models .." by Erdman</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/data-set-for-quot-simulation-models-quot-by-Erdman/m-p/503064#M3375</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13094"&gt;@user24feb&lt;/a&gt;, I contacted the&amp;nbsp;author of the paper and was told it's fake data. But he did provide the code. Hope it helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Shelley&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data toast;
    tsales =870;
    fs_sales =470;
    fs_price =10;
    gnp = 0.5;
    price = 10.1;
    do t=1 to 50;
       month = t;
       price = price * 0.8 + 1.5 * rannor(52) + 1.5;
       fs_price = 0.7 * fs_price + 15.1 + 5 * rannor(5);
       bprice = 0.1 + 0.01 * rannor(2);
       gnp =  0.8 * gnp  + 0.7 *rannor(156) + 1;
       nwed = 4 * sin(t/5) + 25 + 3*rannor(644);
       tsales = 0.91 *tsales - 18.5 * price ** 1.2 +
             13 *nwed + 10 * gnp + 30;
       fs_sales = 0.9 * fs_sales - fs_price ** 0.5 +
             18 * gnp + 50 ;
       if t &amp;gt;= 15 and t &amp;lt; 20 then tsales = tsales + 250;
       if t &amp;gt;= 35 and t &amp;lt; 40 then tsales = tsales + 290;

       if t &amp;gt;= 15 and t &amp;lt; 20 then fs_sales = fs_sales + 150;
       if t &amp;gt;= 35 and t &amp;lt; 40 then fs_sales = fs_sales + 190;

       ad_cost =0;
       if t &amp;gt;= 15 and t &amp;lt; 20 then ad_cost = 5000;
       if t &amp;gt;= 35 and t &amp;lt; 40 then ad_cost = 8000;

       tsales = (tsales - 0.01 * fs_sales) /0.9995;
       fs_sales = fs_sales - 0.015 * tsales;
       tsales = tsales + 20*rannor(7);
       fs_sales = fs_sales + 8*rannor(66);

       output;
    end;
run;


title height=4 'Monthly Toaster Sales';
proc gplot data=toast;
   axis1  value=(height=3) label=(height=3  'Months');
   axis2 value=(height=3) label=(height=3  'TSales');
   plot tsales*month / haxis=axis1 vaxis=axis2;
   symbol1 width=2 i=join ;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 10 Oct 2018 13:03:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/data-set-for-quot-simulation-models-quot-by-Erdman/m-p/503064#M3375</guid>
      <dc:creator>ShelleySessoms</dc:creator>
      <dc:date>2018-10-10T13:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: data set for "simulation models .." by Erdman</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/data-set-for-quot-simulation-models-quot-by-Erdman/m-p/503073#M3376</link>
      <description>If somebody else is ever interested: Add `date = intnx('month', '01JAN89'd, t); format date Date9.;`.</description>
      <pubDate>Wed, 10 Oct 2018 13:17:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/data-set-for-quot-simulation-models-quot-by-Erdman/m-p/503073#M3376</guid>
      <dc:creator>user24feb</dc:creator>
      <dc:date>2018-10-10T13:17:38Z</dc:date>
    </item>
  </channel>
</rss>

