<?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: Two-Way Anova on Unequal Proportion data in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Two-Way-Anova-on-Unequal-Proportion-data/m-p/860620#M339971</link>
    <description>Thanks for the help! Will look into it. Much appreciated!&lt;BR /&gt;</description>
    <pubDate>Fri, 24 Feb 2023 09:08:07 GMT</pubDate>
    <dc:creator>Big-B</dc:creator>
    <dc:date>2023-02-24T09:08:07Z</dc:date>
    <item>
      <title>Two-Way Anova on Unequal Proportion data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Two-Way-Anova-on-Unequal-Proportion-data/m-p/860482#M339921</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I’m working on a dataset collected from a 2-way Anova design (kind of) on binary data. The purpose of the experiment is to explore how different types of email marketing incentives affect customers propensity to buy certain fruits.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The dependent variable is Purchase rate (Binary; if a customer purchased the offered fruit or not)&lt;/LI&gt;&lt;LI&gt;Factor A has 3 Levels:&lt;BR /&gt;1. Silent Communication (No incentive offered. To observe customers natural propensity to buy any given fruit.)&lt;BR /&gt;2. Email explaining the benefits of consuming the fruit being offered&lt;BR /&gt;3. Same as 2 but with a 15% discount on the fruit offered&lt;/LI&gt;&lt;LI&gt;Factor B has 5 levels. Customers in these groups are incentivized to consume:&lt;BR /&gt;1. Bananas&lt;BR /&gt;2. Apples&lt;BR /&gt;3. Oranges&lt;BR /&gt;4. Kiwis&lt;BR /&gt;5. Fruit of choice (Of the 4 above)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;A sample of 150 000 subscribers were randomly allocated to one of the 15 groups with 10k subscribers in each group.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;The questions I have are the following:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;- Which method or technique should I use to account for the binary response variable?&lt;BR /&gt;- When testing the main effect for Factor B, I do not want to test the difference in purchase rates shown in Table 1 (which is what is computed by default in SAS?). Rather, I’m interested in comparing the differences in purchase rate uplifts between the groups, i.e. the numbers in table 2 highlighted in green.&lt;/P&gt;&lt;P&gt;I would appreciate to get some guidance and advise on how to handle the two issues described?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BigB_1-1677167755851.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/80775i612938A9E8466D68/image-size/large?v=v2&amp;amp;px=999" role="button" title="BigB_1-1677167755851.png" alt="BigB_1-1677167755851.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 15:57:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Two-Way-Anova-on-Unequal-Proportion-data/m-p/860482#M339921</guid>
      <dc:creator>Big-B</dc:creator>
      <dc:date>2023-02-23T15:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Two-Way Anova on Unequal Proportion data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Two-Way-Anova-on-Unequal-Proportion-data/m-p/860497#M339930</link>
      <description>&lt;P&gt;I don't use ANOVA much.&amp;nbsp; But regression is essentially the same; I would just do a logistic account for the binary response. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc logistic data= data; 
    class factorA(ref='Silent') factorB(ref='Banana') / param=ref; 
    model purchase(event='1') = factorA factorB factorA*factorB; 
run;
    &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;To get the percentages is a bit more work.&amp;nbsp; You could do some lengthy code to get it, but I would probably just do this, and calculate the differences I wanted manually:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data= data; 
    tables factorA * purchase; 
    tables factorB * purchase; 
    tables factorA * factorB * purchase; 
run; &lt;/CODE&gt;&lt;/PRE&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 17:14:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Two-Way-Anova-on-Unequal-Proportion-data/m-p/860497#M339930</guid>
      <dc:creator>awesome_opossum</dc:creator>
      <dc:date>2023-02-23T17:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Two-Way Anova on Unequal Proportion data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Two-Way-Anova-on-Unequal-Proportion-data/m-p/860620#M339971</link>
      <description>Thanks for the help! Will look into it. Much appreciated!&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Feb 2023 09:08:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Two-Way-Anova-on-Unequal-Proportion-data/m-p/860620#M339971</guid>
      <dc:creator>Big-B</dc:creator>
      <dc:date>2023-02-24T09:08:07Z</dc:date>
    </item>
  </channel>
</rss>

