<?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: Determine if promotion impacts demand/sales. in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Determine-if-promotion-impacts-demand-sales/m-p/934563#M46594</link>
    <description>&lt;P&gt;At this point, you are outside my area of expertise. Perhaps &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt; or &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt; or others know how to proceed.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jul 2024 15:02:38 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2024-07-03T15:02:38Z</dc:date>
    <item>
      <title>Determine if promotion impacts demand/sales.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Determine-if-promotion-impacts-demand-sales/m-p/934209#M46578</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have weekly time series POS data from retail on store level where the dependent variable is demand for a product in volume and the independent variables are product price, and a binary intervention dummy variable to indicate promotion within certain time frame on retail store level with location and address.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What statistical analysis can determine if the promotion impacts demand/sales? &amp;nbsp;Do any of you have any suggestions or recommendations? Any feedback would be very much appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ethan&lt;/P&gt;&lt;P&gt;P.S. I do have SAS/ETS available.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 02:56:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Determine-if-promotion-impacts-demand-sales/m-p/934209#M46578</guid>
      <dc:creator>t75wez1</dc:creator>
      <dc:date>2024-07-01T02:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: Determine if promotion impacts demand/sales.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Determine-if-promotion-impacts-demand-sales/m-p/934237#M46579</link>
      <description>&lt;P&gt;Example: &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/etsug/etsug_arima_examples04.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/etsug/etsug_arima_examples04.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 09:44:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Determine-if-promotion-impacts-demand-sales/m-p/934237#M46579</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-07-01T09:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: Determine if promotion impacts demand/sales.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Determine-if-promotion-impacts-demand-sales/m-p/934263#M46580</link>
      <description>&lt;P&gt;Thanks so much for your prompt response with the helpful example.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I still don't know how to interpret and compare the results between with and without intervention based the forecasting result.&lt;/P&gt;&lt;P&gt;My goal is not forecasting with those historical data.&amp;nbsp; I expected to build a A/B test and have no idea on how to define a control and a test group.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you enlighten me?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 14:23:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Determine-if-promotion-impacts-demand-sales/m-p/934263#M46580</guid>
      <dc:creator>t75wez1</dc:creator>
      <dc:date>2024-07-01T14:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Determine if promotion impacts demand/sales.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Determine-if-promotion-impacts-demand-sales/m-p/934272#M46583</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/23924"&gt;@t75wez1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I still don't know how to interpret and compare the results between with and without intervention based the forecasting result.&lt;/P&gt;
&lt;P&gt;My goal is not forecasting with those historical data.&amp;nbsp; I expected to build a A/B test and have no idea on how to define a control and a test group.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Google finds this: &lt;A href="https://medium.com/mayflower-team/controlling-influence-between-groups-in-a-b-testing-interrupted-time-series-design-6d3023e3a8bc" target="_blank"&gt;https://medium.com/mayflower-team/controlling-influence-between-groups-in-a-b-testing-interrupted-time-series-design-6d3023e3a8bc&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and other potentially useful links&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 15:18:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Determine-if-promotion-impacts-demand-sales/m-p/934272#M46583</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-07-01T15:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Determine if promotion impacts demand/sales.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Determine-if-promotion-impacts-demand-sales/m-p/934543#M46593</link>
      <description>&lt;P&gt;Still not clear on how to implement the example and the idea from two articles in SAS code to design A/B test.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if comparing the results with X1 and without X1 by running the ARIMA model below twice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could anyone shed some light on it?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the time series data and ARIMA code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;PRE&gt;/*--------------------------------------------------------------

                    SAS Sample Library

        Name: ariex04.sas
 Description: Example program from SAS/ETS User's Guide,
              The ARIMA Procedure
       Title: An Intervention Model for Ozone Data
     Product: SAS/ETS Software
        Keys: time series analysis
        PROC: ARIMA
       Notes:

--------------------------------------------------------------*/

title1 'Intervention Data for Ozone Concentration';
title2 '(Box and Tiao, JASA 1975 P.70)';
data air;
   input ozone @@;
   label ozone  = 'Ozone Concentration'
         x1     = 'Intervention for post 1960 period'
         summer = 'Summer Months Intervention'
         winter = 'Winter Months Intervention';
   date = intnx( 'month', '31dec1954'd, _n_ );
   format date monyy.;
   month = month( date );
   year = year( date );
   x1 = year &amp;gt;= 1960;
   summer = ( 5 &amp;lt; month &amp;lt; 11 ) * ( year &amp;gt; 1965 );
   winter = ( year &amp;gt; 1965 ) - summer;
datalines;
2.7  2.0  3.6  5.0  6.5  6.1  5.9  5.0  6.4  7.4  8.2  3.9
4.1  4.5  5.5  3.8  4.8  5.6  6.3  5.9  8.7  5.3  5.7  5.7
3.0  3.4  4.9  4.5  4.0  5.7  6.3  7.1  8.0  5.2  5.0  4.7
3.7  3.1  2.5  4.0  4.1  4.6  4.4  4.2  5.1  4.6  4.4  4.0
2.9  2.4  4.7  5.1  4.0  7.5  7.7  6.3  5.3  5.7  4.8  2.7
1.7  2.0  3.4  4.0  4.3  5.0  5.5  5.0  5.4  3.8  2.4  2.0
2.2  2.5  2.6  3.3  2.9  4.3  4.2  4.2  3.9  3.9  2.5  2.2
2.4  1.9  2.1  4.5  3.3  3.4  4.1  5.7  4.8  5.0  2.8  2.9
1.7  3.2  2.7  3.0  3.4  3.8  5.0  4.8  4.9  3.5  2.5  2.4
1.6  2.3  2.5  3.1  3.5  4.5  5.7  5.0  4.6  4.8  2.1  1.4
2.1  2.9  2.7  4.2  3.9  4.1  4.6  5.8  4.4  6.1  3.5  1.9
1.8  1.9  3.7  4.4  3.8  5.6  5.7  5.1  5.6  4.8  2.5  1.5
1.8  2.5  2.6  1.8  3.7  3.7  4.9  5.1  3.7  5.4  3.0  1.8
2.1  2.6  2.8  3.2  3.5  3.5  4.9  4.2  4.7  3.7  3.2  1.8
2.0  1.7  2.8  3.2  4.4  3.4  3.9  5.5  3.8  3.2  2.3  2.2
1.3  2.3  2.7  3.3  3.7  3.0  3.8  4.7  4.6  2.9  1.7  1.3
1.8  2.0  2.2  3.0  2.4  3.5  3.5  3.3  2.7  2.5  1.6  1.2
1.5  2.0  3.1  3.0  3.5  3.4  4.0  3.8  3.1  2.1  1.6  1.3
 .    .    .    .    .    .    .    .    .    .    .    .
;

proc arima data=air;

   /* Identify and seasonally difference ozone series */
   identify var=ozone(12)
            crosscorr=( x1(12) summer winter ) noprint;

   /* Fit a multiple regression with a seasonal MA model */
   /*     by the maximum likelihood method               */
   estimate q=(1)(12) input=( x1 summer winter )
            noconstant method=ml;

   /* Forecast */
   forecast  lead=12 id=date interval=month out=arimaout;

run;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;A href="https://documentation.sas.com/#" target="_blank" rel="noopener"&gt;&amp;nbsp;English&lt;/A&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 03 Jul 2024 14:05:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Determine-if-promotion-impacts-demand-sales/m-p/934543#M46593</guid>
      <dc:creator>t75wez1</dc:creator>
      <dc:date>2024-07-03T14:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Determine if promotion impacts demand/sales.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Determine-if-promotion-impacts-demand-sales/m-p/934563#M46594</link>
      <description>&lt;P&gt;At this point, you are outside my area of expertise. Perhaps &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt; or &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt; or others know how to proceed.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 15:02:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Determine-if-promotion-impacts-demand-sales/m-p/934563#M46594</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-07-03T15:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Determine if promotion impacts demand/sales.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Determine-if-promotion-impacts-demand-sales/m-p/934573#M46595</link>
      <description>&lt;P&gt;The choice of the statistical method most appropriate for your data and goal are up to you, but from what I can tell from your description it sounds as though a Generalized Estimating Equations (GEE) model might be worth considering. If you have multiple measurements of demand over time for each store, you might assume that the measurements within a store are more correlated than measurements between stores. A GEE model allows you to account for correlation within clusters or subjects (stores in your case). See the examples in the PROC GEE documentation in the SAS/STAT User's Guide. You would need to choose an appropriate distribution for your response variable (demand) to be specified in the DIST= option. If this is strictly a positively-valued variable, then the gamma or inverse gaussian distribution is often used, generally paired with the log link function (LINK=LOG option). Note that those two distributions do not allow for zero values. You will also need to choose an correlation structure for the form of the matrix of correlations among the measurements within stores. Since GEE protects against incorrect choice of the structure, simpler structures are often used. The LSMEANS statement can be used to compare the levels of intervention. GIven all of that, the code might look something like this.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc gee;
class store interven;
model demand = interven / dist=gamma link=log;
repeated subject=store / type=exch;
lsmeans interven / diff ilink cl;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 Jul 2024 15:32:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Determine-if-promotion-impacts-demand-sales/m-p/934573#M46595</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2024-07-03T15:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Determine if promotion impacts demand/sales.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Determine-if-promotion-impacts-demand-sales/m-p/934589#M46596</link>
      <description>&lt;P&gt;Thanks so much for the suggestion.&lt;/P&gt;&lt;P&gt;I'd love to explore "proc gee" but t&lt;SPAN&gt;hose time series on sales for each store are seasonally differenced. H&lt;/SPAN&gt;ow to&lt;SPAN&gt;&amp;nbsp;bring time to the picture?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 17:29:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Determine-if-promotion-impacts-demand-sales/m-p/934589#M46596</guid>
      <dc:creator>t75wez1</dc:creator>
      <dc:date>2024-07-03T17:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Determine if promotion impacts demand/sales.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Determine-if-promotion-impacts-demand-sales/m-p/934644#M46598</link>
      <description>If it is related to time series analysis , better post at Forecasting Forum:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/bd-p/forecasting_econometrics" target="_blank"&gt;https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/bd-p/forecasting_econometrics&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Jul 2024 01:55:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Determine-if-promotion-impacts-demand-sales/m-p/934644#M46598</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-07-04T01:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: Determine if promotion impacts demand/sales.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Determine-if-promotion-impacts-demand-sales/m-p/934648#M46599</link>
      <description>&lt;P&gt;Sure. I did.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 03:16:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Determine-if-promotion-impacts-demand-sales/m-p/934648#M46599</guid>
      <dc:creator>t75wez1</dc:creator>
      <dc:date>2024-07-04T03:16:00Z</dc:date>
    </item>
  </channel>
</rss>

