randtest.dpcoa
calculates the ratio of beta to gamma diversity associated with DPCoA and compares the observed value to values obtained by permuting data.
"randtest"(xtest, model = c("1p","1s"), nrep = 99,
alter = c("greater", "less", "two-sided"), ...)
dpcoa
randtest
Other null model can be used by entering the name of a function. For example, loading the picante
package of R, if model=randomizeMatrix
, then the permutations will follow function randomizeMatrix
available in picante. Any function can be used provided it returns an abundance matrix of similar size as the observed abundance matrix. Parameters of the chosen function can be added to randtest.dpcoa
. For example, using parameter null.model
of randomizeMatrix
, the following command can be used:
randtest.dpcoa(xtest, model = randomizeMatrix, null.model = "trialswap")
dpcoa
data(humDNAm)
dpcoahum <- dpcoa(data.frame(t(humDNAm$samples)), sqrt(humDNAm$distances), scan = FALSE, nf = 2)
randtest(dpcoahum)
Run the code above in your browser using DataLab