turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Find a Community

- Home
- /
- Analytics
- /
- Stat Procs
- /
- Finding difference in means using Mann Whitney Tes...

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

05-04-2017 07:07 PM

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:

```
proc ttest data=input;
var variable_x;
class variable_y;
weight weight;
run
```

Is there a similar thing for Mann Whitney test in npar1way procedure? Thanks!

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

05-04-2017 07:11 PM - edited 05-04-2017 07:11 PM

There is no WEIGHT statement, but there is a FREQ statement.

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:

FREQ nsubjects ;

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

05-04-2017 07:17 PM

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?

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

05-04-2017 07:27 PM

No, I do not think FREQ would suffice instead of WEIGHJT

In most parametric tests, FREQ will increase the degrees of freedom, since it is specifying an actual count of cases observed. WEIGHT can control your estimate of a statistic, but since it is more like a sampling fraction concept, it should not (as I understand it) change the degrees of freedom. There's a FREQ statement in TTEST, as well as a WEIGHT statement - pretty direct evidence that they are NOT substituable. Try your ttest twice, once using WEIGHT, once using FREQ.

I suspect the same considerations are true for non-parametric tests. If one wanted to provide a WEIGHT statement in PROC NPAR1WAY, how would the procedure calculate the weighted statistic?

This is all from my ancient and only partially-remembered grad student days when I had a share of statistics classes. Given how ancient that time is, you should probably give a relatively low "weight" to this response, until somebody more knowledgeable replies.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

05-04-2017 07:40 PM

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

05-04-2017 07:46 PM

Thank you @Reeza