Forum: *permute* an R package for restricted permutations
Posted by: Gavin Simpson *permute* allows the following permutation designs: o free permutation (randomisation) o permutation of spatial transect or time series data via cyclic wrapping o permutation of spatial grids via toroidal wrapping Each of these can be used at one or both of the block level and the withinblock level. Blocks of samples are defined by the argument `strata` as has been used in *vegan* for many years. As such, *permute* allows for testing of splitplot designs. For spatial data (transect or grid), the cyclic or toroidal wrapping can be performed forwards or backwards in either spatial dimension, and the same permutation can be used for the samples in each block (for example, in the case a time series data where the samples in each block have been "exposed" to the same "time process"). The main functions in *permute* are the `shuffle()` and `shuffleSet()` functions which generate a single permutation or a set of many permutations for a stated design. Permutation designs are defined using function `permControl()`. Function `allPerms()` can be used to generate the entire set of permutations for a given design, which is useful if there are only a small number of permutations possible for the combination of permutation design and number of observations and/or complete enumeration (an exact test) is required. With the release of *permute*, the older functions in *vegan* that implemented a previous version of these restricted permutations have been made defunct. Old code that utilised these functions should be ported to use the new functions in *permute*; help is available upon request. These changes are in *vegan* from version 2.00, which has also been released to CRAN. The main reason for splitting the permutation code out from *vegan* was that by doing so we might make this code available to other package authors without having to depend on the entirety of *vegan*. A nascent Vignette is provided with the package which aims to document the new functions and will, by version 0.8 include a section on using *permute* within functions for package authors wishing to make use of the functionality in *permute*. If you have questions about or comments on the package, contact me or post a message in the Forums section of the Rforge website[1] for the *vegan* stable of packages/ Gavin Simpson [1] https://rforge.rproject.org/forum/?group_id=68

Latest Newsvegan moves to GitHub and new release 2.20Jari Oksanen  20140918 15:58 
0 Comment Read More/Comment
vegan moves to GitHub and new release 2.20Jari Oksanen  20140918 15:57 
0 Comment Read More/Comment
