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