[R] Permutation test, grouped data

Achim Zeileis Achim.Zeileis at wu-wien.ac.at
Fri Nov 2 16:02:00 CET 2007


On Fri, 2 Nov 2007, Tom Backer Johnsen wrote:

> I am perfectly aware that this question is not an R question, at least
> not yet, but I have not succeeded in finding what I want in other
> ways, so ...
>
> What I am looking for are two algorithms, preferabley in Pascal, but
> other languages may do.  For (a) systematic (complete) permutations
> for grouped data with unequal group sizes, and (b) random permutations
> for the same kind of data.

The "coin" package might be of help here. Option (b) is always possible,
(a) might be very slow depending on the size of your data set and the type
of test statistic you are evaluating. See
  vignette("LegoCondInf", package = "coin")
to get started.

hth,
Z

> I know of one source: E. S. Edgington
> (1980): Randomization Tests (program 4.1 and program 4.3), but those
> are written in Fortran with a lot of GO TO's which probably would not
> be very efficient even if I managed to manually these programs and do
> a correct translation.  There must be some more modern ones around,
> but where?
>
> I need the algorithms for a program I have written for exploring
> structural balance in sociometric group structures.
>
> Tom
>
> +----------------------------------------------------------------+
> | Tom Backer Johnsen, Psychometrics Unit,  Faculty of Psychology |
> | University of Bergen, Christies gt. 12, N-5015 Bergen,  NORWAY |
> | Tel : +47-5558-9185                        Fax : +47-5558-9879 |
> | Email : backer at psych.uib.no    URL : http://www.galton.uib.no/ |
> +----------------------------------------------------------------+
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
>



More information about the R-help mailing list