PageRenderTime 10ms CodeModel.GetById 8ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 0ms

/packages/archive/2010/04.2010/04.30.2010/spacodi/man/resamp.2s.Rd

http://github.com/eastman/spacodiR
Unknown | 35 lines | 24 code | 11 blank | 0 comment | 0 complexity | ce82cba91dde690a085df6848e5bf5d3 MD5 | raw file
 1\name{resamp.2s}
 2
 3\alias{resamp.2s}
 4
 5\title{randomizing a species-by-plots matrix: '2s' of Hardy (2008)}
 6
 7\usage{resamp.2s(obj)}
 8
 9\arguments{
10  \item{obj}{a community-phylogenetic dataset in \code{SPACoDi} format (see \code{\link{as.spacodi}})}
11}
12
13\details{A resampling procedure for a species-by-plots matrix, where observed abundances are shuffled across species but within plots.}
14
15\value{A shuffled dataset}
16
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}
23
24\author{Jonathan Eastman}
25
26\seealso{\code{\link{Bst.by.nodes}} for permutation tests of community diversity and additional randomization methods; 
27see \code{\link{spacodi.calc}} for the main underlying function}
28
29\examples{
30sp.plot <- sim.spacodi(species=10,plots=4,missing.prop=0.15,sim.tree=FALSE)
31sp.plot
32
33# shuffle dataset
34resamp.2s(obj=sp.plot) 
35}