[R-sig-eco] Permutation: habitat diversity

Gavin Simpson gavin.simpson at ucl.ac.uk
Fri Dec 23 20:45:36 CET 2011


On Fri, 2011-12-23 at 18:41 +0000, Martin Wilkes wrote:
> We have counts of habitat types at three sites and want to permute the
> sets of counts between sites to get a distribution of habitat (H)
> diversity. We have tried several R functions (perm, sample, permtest)
> but none seems to do what we want.  We're happy writing the code to
> calculate the H distribution but need some help getting the
> permutations right if possible please.

Hi Martin,

Its not immediately clear to me what your data looks like nor what needs
to be shuffled and what doesn't. Could you expand, perhaps with a
simplified example or structure of data and how you want to shuffle it?

In the meantime, take a look at the permute package as it may do what
you want. If it doesn't I'd be interested in knowing how you want to
permute your data as it might be easy to add this sort of thing to
permute at a later date.

All the best,

Gavin

> Thanks
> 
> Martin Wilkes
> University of Worcester
> 
> 	[[alternative HTML version deleted]]
> 
> _______________________________________________
> R-sig-ecology mailing list
> R-sig-ecology at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-ecology
> 

-- 
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
 Dr. Gavin Simpson             [t] +44 (0)20 7679 0522
 ECRC, UCL Geography,          [f] +44 (0)20 7679 0565
 Pearson Building,             [e] gavin.simpsonATNOSPAMucl.ac.uk
 Gower Street, London          [w] http://www.ucl.ac.uk/~ucfagls/
 UK. WC1E 6BT.                 [w] http://www.freshwaters.org.uk
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%



More information about the R-sig-ecology mailing list