Dear all,

I am working on an ecological community species data matrix (site by species), and I have many species and sites. I want to select sub-communities with different sample sizes randomly, and later compare the similarity of these communities. The idea of doing is that some of my sites have a few specimens, so I want to find a sample size (a threshold) that I can use to compare the communities with each other, and discard certain sites that fall below that threshold. I am trying to decide which sites I want to include in my data analysis.

Two questions: 

1- How can I randomly subselect the communities? Along with this line, I tried various options, i.e., rarefy the communities to a certain size or use 'sample' package of R.

2- If I have communities with different sizes, and generate distance matrices using these communities, I am not able to compare them using mantel test in R, due to incompatible dimensions. How would you compare samples with different sizes, regarding their similarity?

Any suggestions on these issues are appreciated. 

More Bilgenur Baloglu's questions See All
Similar questions and discussions