<?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 comparing shapes of distributions to determine appropriate alternate hypothesis for Kruskal Wallis in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/comparing-shapes-of-distributions-to-determine-appropriate/m-p/780861#M38344</link>
    <description>&lt;P&gt;I am using SAS Studio 3.8 Enterprise Edition&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;SAS release:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;9.04.01M6P11072018&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;SAS platform:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;Linux LIN X64 3.10.0-1062.9.1.el7.x86_64&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Site name:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;SAS ONDEMAND FOR ACADEMICS&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This question has to do with determining the alternate hypothesis of a Kruskal Wallis test. I can't talk about medians if shapes of distributions are not the same. How do I determine that?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to compare the medians of three brands of bulbs. Before doing so using a K_W test, I want to see whether the shapes of the distributions of the three brands are the same. I can do histogram plots or compare cdf plots (edf option in proc npar1way). Which would be better?&amp;nbsp; Which formal test should I use? Also in case of three groups p-value for KS test is not output. Do I treat SAS output as quantiles and go to hardcopy tables?&amp;nbsp; Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;DATA bulbs
INPUT brand $ lifetime;
subject=_n_;
DATALINES;
A  73
A  64
A  67 
A  62
A  70
B  84
B  80
B  81 
B  77
C  82
C  79 
C  71
C  75
;

proc npar1way data=bulbs;
class brand;
var lifetime;
run; quit; title&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Nov 2021 04:00:57 GMT</pubDate>
    <dc:creator>MaryA_Marion</dc:creator>
    <dc:date>2021-11-18T04:00:57Z</dc:date>
    <item>
      <title>comparing shapes of distributions to determine appropriate alternate hypothesis for Kruskal Wallis</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/comparing-shapes-of-distributions-to-determine-appropriate/m-p/780861#M38344</link>
      <description>&lt;P&gt;I am using SAS Studio 3.8 Enterprise Edition&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;SAS release:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;9.04.01M6P11072018&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;SAS platform:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;Linux LIN X64 3.10.0-1062.9.1.el7.x86_64&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Site name:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;SAS ONDEMAND FOR ACADEMICS&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This question has to do with determining the alternate hypothesis of a Kruskal Wallis test. I can't talk about medians if shapes of distributions are not the same. How do I determine that?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to compare the medians of three brands of bulbs. Before doing so using a K_W test, I want to see whether the shapes of the distributions of the three brands are the same. I can do histogram plots or compare cdf plots (edf option in proc npar1way). Which would be better?&amp;nbsp; Which formal test should I use? Also in case of three groups p-value for KS test is not output. Do I treat SAS output as quantiles and go to hardcopy tables?&amp;nbsp; Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;DATA bulbs
INPUT brand $ lifetime;
subject=_n_;
DATALINES;
A  73
A  64
A  67 
A  62
A  70
B  84
B  80
B  81 
B  77
C  82
C  79 
C  71
C  75
;

proc npar1way data=bulbs;
class brand;
var lifetime;
run; quit; title&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 04:00:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/comparing-shapes-of-distributions-to-determine-appropriate/m-p/780861#M38344</guid>
      <dc:creator>MaryA_Marion</dc:creator>
      <dc:date>2021-11-18T04:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: comparing shapes of distributions to determine appropriate alternate hypothesis for Kruskal Wall</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/comparing-shapes-of-distributions-to-determine-appropriate/m-p/780871#M38345</link>
      <description>&lt;P&gt;The K-W test is a general test of location and is distribution free. So you can use it regardless of the distribution(s) in the data. However, if you particularly want to test for differences in distribution shape, you can use the empirical distribution function tests available with the EDF option. These are described in the NPAR1WAY documentation.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 20:33:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/comparing-shapes-of-distributions-to-determine-appropriate/m-p/780871#M38345</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2021-11-17T20:33:31Z</dc:date>
    </item>
  </channel>
</rss>

