View source: R/Dif_dist_function.R
This function computes distances between centroids of ponds with and without fish for each isolation distance treatment. Then it computes the differences among those distances among isolation treatments and tests it for significance. IMPORTANT: This function will only work for the variables provided in this package, you may need to make changes to it if you want to apply it to a different data set.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
x1 |
A vector containing the identity of fish treatments. |
x2 |
A vector containing the identity of isolation treatments. |
LVs |
The latent variables or ordination axis to be used to compute centroids. If NULL, GLLVM will be computed. Defaut is NULL. |
test |
Should the significance of the difference between distances be tested? Defaut is set to TRUE. If FALSE, all arguments related to test will be ignored. |
nperm |
The number of permutations. |
family |
Family distribution to fit the GLLVMs. |
num.lv |
Number of latent variables used to compute GLLVMs. |
strata |
Should communities be permuted freely or be restricted by fish treatment? Defaut to TRUE. |
show.perm |
Show permutation steps? |
orig_n.init |
Number of iterations used to compute the original GLLVM? Defaut to 30. |
perm_n.init |
Number of iterations used to compute the permuted GLLVMs? Defaut to 1. |
type |
Either "centroid" or "median". Should centroids or spatial medians be computed? |
method |
Either "VA" or "LA". The method used to estimate latent variables. See function gllvm from package gllvm |
refit_perm |
If TRUE, the rows of the original community matrix will be permuted and for every permutation a gllvm will be computed. It can take too much time. If false, only the rows of a matrix with the original latent variables are permuted. |
comm |
The community data. A species by site matrix containing abundance data. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.