Re: NPAR TESTS

Michael Kiefte <[email protected]> Mon, 29 Mar 2004 10:11:53 -0400
Newsgroups gmane.comp.gnu.fiasco.devel
Organization Dalhousie University
Message-ID <[email protected]>
Couple more thoughts, Ben,

The Mann-Whitney U and Kruskal-Wallis have to have all of the relevant 
observations in the same column anyway since they're unrelated-subjects 
tests.  I think that's the only way you can input the data in SPSS for 
between groups designes.  So it's just a straight sort and rank -- there's 
nothing unusual about it. Sorry about the confusion.

So, I can't think of any strange tests except for one: the Johnkheere trend 
test, and I have some ideas for that.

- M.

On Sunday 28 March 2004 23:44, Ben Pfaff wrote:
> Michael Kiefte <[email protected]> writes:
> > Actually, there's several that need the rank.  W. S-R is a little more
> > complicated than that even: you have to pool the scores from both
> > variables, then assign the ranks and then put them back in the right
> > variables.  There's a number of stats like that.
>
> Can you think of a few of the others off-hand?  I like to try to
> look forward when I write code, so that I can generalize as much
> as necessary (but not more).
>
> > I'll leave rank to you, but I will need it for quite a number of tests. 
> > I'll work on the simpler ones for now.
>
> Okay.
>
> >> Wouldn't surprise me if they could.  It's basically a sort, and
> >> external sorts are not difficult to write.  They probably just
> >> reuse the code from SORT CASES, the same way I'm planning to do
> >> for RANK.  It might take a little extra effort because you have
> >> to do *two* sorts--the first to get the ranks and the second to
> >> restore the same case ordering as in the active file--but
> >> certainly doable.
> >
> > The added complication is that if you have 2 or more observations with
> > the same rank, their rank is the weighted mean of the ranks they would
> > otherwise be assigned.  That requires looking ahead in the sorted temp
> > file or seeking back.
>
> Shouldn't be too bad then.

-- 
Michael Kiefte, Ph.D.
Assistant Professor
School of Human Communication Disorders
Dalhousie University