<?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 Finding difference in means using Mann Whitney Test (Weighted data) in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Finding-difference-in-means-using-Mann-Whitney-Test-Weighted/m-p/356169#M18672</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I am trying to find the difference in means in my two samples. The distribution is not normal hence I have to resort to Mann Whitney test. Now, the data is weighted. In proc t-test, there is an option of mentioning weight in the command, like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;proc ttest data=input;
var variable_x;
class variable_y;
weight weight;
run&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;Is there a similar thing for &amp;nbsp;Mann Whitney test in npar1way procedure? Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 04 May 2017 23:07:05 GMT</pubDate>
    <dc:creator>vaishak123</dc:creator>
    <dc:date>2017-05-04T23:07:05Z</dc:date>
    <item>
      <title>Finding difference in means using Mann Whitney Test (Weighted data)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Finding-difference-in-means-using-Mann-Whitney-Test-Weighted/m-p/356169#M18672</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I am trying to find the difference in means in my two samples. The distribution is not normal hence I have to resort to Mann Whitney test. Now, the data is weighted. In proc t-test, there is an option of mentioning weight in the command, like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;proc ttest data=input;
var variable_x;
class variable_y;
weight weight;
run&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;Is there a similar thing for &amp;nbsp;Mann Whitney test in npar1way procedure? Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 23:07:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Finding-difference-in-means-using-Mann-Whitney-Test-Weighted/m-p/356169#M18672</guid>
      <dc:creator>vaishak123</dc:creator>
      <dc:date>2017-05-04T23:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: Finding difference in means using Mann Whitney Test (Weighted data)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Finding-difference-in-means-using-Mann-Whitney-Test-Weighted/m-p/356171#M18673</link>
      <description>&lt;P&gt;There is no WEIGHT statement, but there is a FREQ statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have a variable, say NSUBJECTS, that gives an integer number of subjects providing the actual frequency of occurance of the with the corresponding value of the test variable, then you can use this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; FREQ nsubjects ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 23:11:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Finding-difference-in-means-using-Mann-Whitney-Test-Weighted/m-p/356171#M18673</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2017-05-04T23:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: Finding difference in means using Mann Whitney Test (Weighted data)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Finding-difference-in-means-using-Mann-Whitney-Test-Weighted/m-p/356172#M18674</link>
      <description>&lt;P&gt;Actually, I am using a non-parametric test after doing a case control matching. My case control matching is 1:N in nature, and hence I get weights for each control and case observation. Now, having this information, do you think if I include my matching weights in FREQ option, it would suffice?&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 23:17:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Finding-difference-in-means-using-Mann-Whitney-Test-Weighted/m-p/356172#M18674</guid>
      <dc:creator>vaishak123</dc:creator>
      <dc:date>2017-05-04T23:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: Finding difference in means using Mann Whitney Test (Weighted data)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Finding-difference-in-means-using-Mann-Whitney-Test-Weighted/m-p/356179#M18675</link>
      <description>&lt;P&gt;No, I do not think FREQ would suffice instead of WEIGHJT&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In most parametric tests, FREQ will increase the degrees of freedom, since it is specifying an actual count of cases observed.&amp;nbsp; WEIGHT can control your estimate of a statistic, but since it&amp;nbsp;is more like a sampling fraction concept, it&amp;nbsp;should not (as I understand it) change the degrees of freedom.&amp;nbsp; There's a FREQ statement in TTEST, as well as a WEIGHT statement - pretty direct evidence that they are NOT substituable.&amp;nbsp; Try your ttest twice, once using WEIGHT, once using FREQ.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suspect the same considerations are true for non-parametric tests.&amp;nbsp; If one wanted to provide a WEIGHT statement in PROC NPAR1WAY, how would the procedure calculate the weighted statistic?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is all from my ancient and only partially-remembered grad student days when I had a share of statistics classes.&amp;nbsp; Given how ancient that time is, you should probably give a relatively low "weight" to this response, until somebody more knowledgeable replies.&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 23:27:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Finding-difference-in-means-using-Mann-Whitney-Test-Weighted/m-p/356179#M18675</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2017-05-04T23:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Finding difference in means using Mann Whitney Test (Weighted data)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Finding-difference-in-means-using-Mann-Whitney-Test-Weighted/m-p/356181#M18676</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31461"&gt;@mkeintz&lt;/a&gt;&amp;nbsp;the math is here&lt;/P&gt;
&lt;P&gt;&lt;A href="http://stackoverflow.com/questions/40044375/how-to-calculate-the-kolmogorov-smirnov-statistic-between-two-weighted-samples" target="_blank"&gt;http://stackoverflow.com/questions/40044375/how-to-calculate-the-kolmogorov-smirnov-statistic-between-two-weighted-samples&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stats.stackexchange.com/questions/193439/two-sample-kolmogorov-smirnov-test-with-weights" target="_blank"&gt;https://stats.stackexchange.com/questions/193439/two-sample-kolmogorov-smirnov-test-with-weights&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 23:40:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Finding-difference-in-means-using-Mann-Whitney-Test-Weighted/m-p/356181#M18676</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-05-04T23:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Finding difference in means using Mann Whitney Test (Weighted data)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Finding-difference-in-means-using-Mann-Whitney-Test-Weighted/m-p/356182#M18677</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 23:46:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Finding-difference-in-means-using-Mann-Whitney-Test-Weighted/m-p/356182#M18677</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2017-05-04T23:46:31Z</dc:date>
    </item>
  </channel>
</rss>

