<?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: PROC ANOVA for campaign evaluation in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-ANOVA-for-campaign-evaluation/m-p/683412#M32868</link>
    <description>&lt;P&gt;I moved this to the Statistical Procedures community, and edited the subject line. "SAS Coding" in the&amp;nbsp;&lt;STRONG&gt;SAS&lt;/STRONG&gt; communities is not descriptive at all, because most of the traffic here deals with that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By supplying usable source/example data (see your other post), you will make it easier to check your code.&lt;/P&gt;</description>
    <pubDate>Sat, 12 Sep 2020 07:57:49 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-09-12T07:57:49Z</dc:date>
    <item>
      <title>PROC ANOVA for campaign evaluation</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-ANOVA-for-campaign-evaluation/m-p/683409#M32867</link>
      <description>&lt;P&gt;If I want to know whether the new marketing campaign has increased sales. There are 147 stores that used the new social media marketing strategy and 1,112 that did not.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC ANOVA DATA = mkt ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;CLASS campaign ;&lt;/P&gt;
&lt;P&gt;MODEL sales1 sales2 = campaign / NOUNI ;&lt;/P&gt;
&lt;P&gt;REPEATED market 2 (1 2) ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is the code write? What am I doing wrong here?&lt;/P&gt;</description>
      <pubDate>Sat, 12 Sep 2020 07:52:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-ANOVA-for-campaign-evaluation/m-p/683409#M32867</guid>
      <dc:creator>luinkhandakar</dc:creator>
      <dc:date>2020-09-12T07:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: PROC ANOVA for campaign evaluation</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-ANOVA-for-campaign-evaluation/m-p/683412#M32868</link>
      <description>&lt;P&gt;I moved this to the Statistical Procedures community, and edited the subject line. "SAS Coding" in the&amp;nbsp;&lt;STRONG&gt;SAS&lt;/STRONG&gt; communities is not descriptive at all, because most of the traffic here deals with that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By supplying usable source/example data (see your other post), you will make it easier to check your code.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Sep 2020 07:57:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-ANOVA-for-campaign-evaluation/m-p/683412#M32868</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-09-12T07:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: PROC ANOVA for campaign evaluation</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-ANOVA-for-campaign-evaluation/m-p/683427#M32869</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/346674"&gt;@luinkhandakar&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;If I want to know whether the new marketing campaign has increased sales. There are 147 stores that used the new social media marketing strategy and 1,112 that did not.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC ANOVA DATA = mkt ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;CLASS campaign ;&lt;/P&gt;
&lt;P&gt;MODEL sales1 sales2 = campaign / NOUNI ;&lt;/P&gt;
&lt;P&gt;REPEATED market 2 (1 2) ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is the code write? What am I doing wrong here?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Why do you think anything is wrong here? &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Show us what is wrong.&lt;/STRONG&gt;&lt;/FONT&gt; Show us the log where there are errors (the entire log for PROC ANOVA including the code, the ERRORs, the NOTEs and the WARNINGs), or show us the output and explain why it isn't right.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Sep 2020 11:10:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-ANOVA-for-campaign-evaluation/m-p/683427#M32869</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-09-12T11:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: PROC ANOVA for campaign evaluation</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-ANOVA-for-campaign-evaluation/m-p/683627#M32901</link>
      <description>&lt;P&gt;PROC ANOVA is designed for balanced data, which is not the case for your situation. PROC GLM is probably better (and even better PROC MIXED).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One key is that your data be structured with sales1 value, sales2 value, and the market variable indicator named as 'campaign' for each record.&amp;nbsp; Then try:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC GLMA DATA = mkt ;
 CLASS campaign ;
MODEL sales1 sales2 = campaign / NOUNI ;
REPEATED campaign 2 (1 2) ;
QUIT:&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;PROC MIXED would be better suited to interpretation than the multivariate results of PROC GLM (or PROC ANOVA).&amp;nbsp; First you would need to restructure your data to a long format, and then analyze.&amp;nbsp; PROC GLIMMIX was chosen over PROC MIXED to get the slicediff option&amp;nbsp; This should work:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data mktlong;
set market;
value=sales1; sales=1; output;
value=sales2; sales=2; output;
drop sales1 sales2;
run;

proc glimmix data=mktlong;
class campaign sales store;
model value=sales campaign sales*campaign;
random sales/subject=store residual;
lsmeans sales campaign;
lsmeans sales*campaign/slicediff=campaign;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;SteveDenham&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2020 11:55:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-ANOVA-for-campaign-evaluation/m-p/683627#M32901</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-09-14T11:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: PROC ANOVA for campaign evaluation</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-ANOVA-for-campaign-evaluation/m-p/683639#M32906</link>
      <description>&lt;P&gt;I agree with you&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15363"&gt;@SteveDenham&lt;/a&gt;&amp;nbsp;except this part:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;PROC ANOVA is designed for balanced data, which is not the case for your situation.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;which is an incomplete statement of what PROC ANOVA does. &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_anova_overview.htm&amp;amp;locale=en" target="_self"&gt;The documentation&lt;/A&gt; clearly says it also works for one-way ANOVA which is an exception to the requirement of balance.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Use PROC ANOVA for the analysis of balanced data only, &lt;FONT color="#FF0000"&gt;with the following exceptions:&amp;nbsp;&lt;A id="statug.anova.a0000000008" class="indexterm" target="_blank"&gt;&lt;/A&gt;one-way analysis of variance&lt;/FONT&gt;, Latin square designs, certain partially balanced incomplete block designs, completely nested (hierarchical) designs, and designs with cell frequencies that are proportional to each other and are also proportional to the background population. These exceptions have designs in which the factors are all orthogonal to each other.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2020 12:53:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-ANOVA-for-campaign-evaluation/m-p/683639#M32906</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-09-14T12:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: PROC ANOVA for campaign evaluation</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-ANOVA-for-campaign-evaluation/m-p/683720#M32923</link>
      <description>&lt;P&gt;That is an excellent point&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;.I guess I don't think of repeated measures as a one-way analysis, so I got a bit fast and loose about the reasons to avoid PROC ANOVA.&amp;nbsp; I think the OP has two names for the same thing - campaign and market, which may be the cause of the problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2020 17:33:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-ANOVA-for-campaign-evaluation/m-p/683720#M32923</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-09-14T17:33:46Z</dc:date>
    </item>
  </channel>
</rss>

