<?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: Find statistical dferences between days in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Find-statistical-dferences-between-days/m-p/735642#M35714</link>
    <description>&lt;P&gt;The&amp;nbsp;Chi-Square Test you do is testing for Equal Proportions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's how to compare two proportions in SAS (between two days if you want):&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://blogs.sas.com/content/iml/2017/07/05/test-equality-two-proportions-sas.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2017/07/05/test-equality-two-proportions-sas.html&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://support.sas.com/kb/22/561.html" target="_blank"&gt;https://support.sas.com/kb/22/561.html&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I haven't read above blog and usage note myself (I'm in a hurry) but it may be that you still have to correct for an inflation of the TYPE-I error when doing multiple comparisons (like a BONFERRONI correction).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
    <pubDate>Tue, 20 Apr 2021 16:15:26 GMT</pubDate>
    <dc:creator>sbxkoenk</dc:creator>
    <dc:date>2021-04-20T16:15:26Z</dc:date>
    <item>
      <title>Find statistical dferences between days</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Find-statistical-dferences-between-days/m-p/735586#M35712</link>
      <description>&lt;P&gt;I have this dataset:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data have;&lt;BR /&gt;length day$ 20;&lt;BR /&gt;input week day$ sell_item;&lt;BR /&gt;format sell_item sell_item_.;&lt;BR /&gt;datalines;&lt;BR /&gt;1 Monday 6&lt;BR /&gt;1 Tuesday 51&lt;BR /&gt;1 Wednesday 69&lt;BR /&gt;1 Thursday 68&lt;BR /&gt;1 Friday 28&lt;BR /&gt;1 Saturday 16&lt;BR /&gt;1 Sunday 94&lt;BR /&gt;;&lt;BR /&gt;proc freq data=have;&lt;BR /&gt;tables day / nopercent norow nocol deviation expected chisq;&lt;BR /&gt;weight sell_item;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;here i see information of selling items in a store. Regarding chi squared test, can be found statistical significance (p&amp;lt;0.01), but i would like to estimate individual difference of selling between each day.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 14:41:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Find-statistical-dferences-between-days/m-p/735586#M35712</guid>
      <dc:creator>jonatan_velarde</dc:creator>
      <dc:date>2021-04-20T14:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Find statistical dferences between days</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Find-statistical-dferences-between-days/m-p/735642#M35714</link>
      <description>&lt;P&gt;The&amp;nbsp;Chi-Square Test you do is testing for Equal Proportions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's how to compare two proportions in SAS (between two days if you want):&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://blogs.sas.com/content/iml/2017/07/05/test-equality-two-proportions-sas.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2017/07/05/test-equality-two-proportions-sas.html&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://support.sas.com/kb/22/561.html" target="_blank"&gt;https://support.sas.com/kb/22/561.html&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I haven't read above blog and usage note myself (I'm in a hurry) but it may be that you still have to correct for an inflation of the TYPE-I error when doing multiple comparisons (like a BONFERRONI correction).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 16:15:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Find-statistical-dferences-between-days/m-p/735642#M35714</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2021-04-20T16:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Find statistical dferences between days</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Find-statistical-dferences-between-days/m-p/735657#M35715</link>
      <description>&lt;P&gt;You can't find a statistical difference between days unless you have replicates of Monday, and replicates of Tuesday, and so on.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 16:32:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Find-statistical-dferences-between-days/m-p/735657#M35715</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-04-20T16:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: Find statistical dferences between days</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Find-statistical-dferences-between-days/m-p/735694#M35720</link>
      <description>I thought  the same my friend, later i posted current question.&lt;BR /&gt;&lt;BR /&gt;What can be done with this code:&lt;BR /&gt;data have;&lt;BR /&gt;length day$ 20;&lt;BR /&gt;input week day$ sell_item;&lt;BR /&gt;format sell_item sell_item_.;&lt;BR /&gt;datalines;&lt;BR /&gt;1 Monday 6&lt;BR /&gt;1 Tuesday 51&lt;BR /&gt;1 Wednesday 69&lt;BR /&gt;1 Thursday 68&lt;BR /&gt;1 Friday 28&lt;BR /&gt;1 Saturday 16&lt;BR /&gt;1 Sunday 94&lt;BR /&gt;2 Monday 16&lt;BR /&gt;2 Tuesday 41&lt;BR /&gt;2 Wednesday 29&lt;BR /&gt;2 Thursday 28&lt;BR /&gt;2 Friday 78&lt;BR /&gt;2 Saturday 6&lt;BR /&gt;2 Sunday 4&lt;BR /&gt;3 Monday 16&lt;BR /&gt;3 Tuesday 71&lt;BR /&gt;3 Wednesday 19&lt;BR /&gt;3 Thursday 18&lt;BR /&gt;3 Friday 18&lt;BR /&gt;3 Saturday 36&lt;BR /&gt;3 Sunday 64&lt;BR /&gt;&lt;BR /&gt;;&lt;BR /&gt;proc freq data=have;&lt;BR /&gt;tables day / nopercent norow nocol deviation expected chisq;&lt;BR /&gt;weight sell_item;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Apr 2021 17:44:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Find-statistical-dferences-between-days/m-p/735694#M35720</guid>
      <dc:creator>jonatan_velarde</dc:creator>
      <dc:date>2021-04-20T17:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Find statistical dferences between days</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Find-statistical-dferences-between-days/m-p/735695#M35721</link>
      <description>&lt;P&gt;If there is only the one predictor, then you can fit a Poisson model. Note that in this case, the model is saturated, so the predicted values are exactly the observed values.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc genmod;
class day;
model sell_item=day/dist=poisson;
lsmeans day / diff ilink; 
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If there is a second categorical predictor, resulting in a 2-way table with your SELL_ITEM variable giving the cell counts, then &lt;A href="http://support.sas.com/kb/22565" target="_self"&gt;this note&lt;/A&gt; shows ways you can proceed, including analyzing subtables or fitting a model.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 17:45:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Find-statistical-dferences-between-days/m-p/735695#M35721</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2021-04-20T17:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Find statistical dferences between days</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Find-statistical-dferences-between-days/m-p/735696#M35722</link>
      <description>&lt;P&gt;Okay, what hypothesis do you want to test to determine if the difference between days is statistically significant?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 17:49:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Find-statistical-dferences-between-days/m-p/735696#M35722</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-04-20T17:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Find statistical dferences between days</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Find-statistical-dferences-between-days/m-p/735699#M35723</link>
      <description>Hypothesis: At least 1 day has better sells at week.</description>
      <pubDate>Tue, 20 Apr 2021 17:53:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Find-statistical-dferences-between-days/m-p/735699#M35723</guid>
      <dc:creator>jonatan_velarde</dc:creator>
      <dc:date>2021-04-20T17:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Find statistical dferences between days</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Find-statistical-dferences-between-days/m-p/735717#M35724</link>
      <description>&lt;P&gt;For that hypothesis you only need the Type 3 test for DAY from this code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc genmod data=have;
class day;
model sell_item=day/dist=poisson type3;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Apr 2021 18:20:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Find-statistical-dferences-between-days/m-p/735717#M35724</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2021-04-20T18:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: Find statistical dferences between days</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Find-statistical-dferences-between-days/m-p/735948#M35732</link>
      <description>Also could try TESTP= option:&lt;BR /&gt;proc freq data=have;&lt;BR /&gt;tables day / testp=(.....);&lt;BR /&gt;weight sell_item;&lt;BR /&gt;run;</description>
      <pubDate>Wed, 21 Apr 2021 13:11:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Find-statistical-dferences-between-days/m-p/735948#M35732</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-04-21T13:11:49Z</dc:date>
    </item>
  </channel>
</rss>

