/packages/archive/2010/05.2010/05.01.2010/spacodi/man/resamp.3x.Rd

http://github.com/eastman/spacodiR · Unknown · 44 lines · 32 code · 12 blank · 0 comment · 0 complexity · 79c9389c808084cc31ee93a2ebb1337c MD5 · raw file

  1. \name{resamp.3x}
  2. \alias{resamp.3x}
  3. \title{null models: randomizing a community phylogenetics matrix: '3x' of Hardy (2008)}
  4. \usage{resamp.3x(obj, level=0.1)}
  5. \arguments{
  6. \item{obj}{a community-phylogenetic dataset in \code{SPACoDi} format (see \code{\link{as.spacodi}})}
  7. \item{level}{a proportion specifying the extent of data shuffling}
  8. }
  9. \details{
  10. A resampling procedure for a species-by-plots matrix, based on Gotelli swapping.
  11. Shuffles abundances within species and for a pair of plots. The \code{level} defines
  12. the degree of sampling, with larger values dictating a higher level of reshuffling.
  13. For instance, if \code{level = 0.1} and the dataset involves 20 species and 20 plots,
  14. a total of 40 (\code{0.1*20*20}) Gotelli swaps are performed.
  15. }
  16. \value{A shuffled dataset}
  17. \references{
  18. HARDY OJ. 2008. Testing the spatial phylogenetic
  19. structure of local communities: statistical performances of
  20. different null models and test statistics on a locally neutral
  21. community. Journal of Ecology 96:914-926.
  22. GOTELLI NJ. 2000. Null model analysis of species co-occurrence patterns. Ecology 81:2606–2621.
  23. }
  24. \author{Jonathan Eastman}
  25. \seealso{\code{\link{Bst.by.nodes}} for permutation tests of community diversity and additional randomization methods;
  26. see \code{\link{spacodi.calc}} for the main underlying function; \code{\link[picante]{randomizeMatrix}}}
  27. \examples{
  28. sp.plot <- sim.spacodi(species=10,plots=4,missing.prop=0.15,sim.tree=FALSE)
  29. sp.plot
  30. # shuffle dataset
  31. resamp.3x(obj=sp.plot, level=0.2)
  32. }