Usage
phylostruct(samp, tree, env=NULL, metric=c("psv","psr","pse","psc","sppregs"), null.model=c("frequency",
"richness","independentswap","trialswap"), runs=100, it=1000, alpha=0.05, fam="binomial")
Arguments
samp
community data matrix, species as columns, communities as rows
tree
phylo tree object or a phylogenetic covariance matrix
env
environmental data matrix
metric
if metric="psv"
, "psr"
, "pse"
, or "psc"
compares the observed mean of the respective metric to a null distribution at a given alpha; if metric="sppregs"
compares the three correlations produ
null.model
permutation procedure used to create the null distribution, see randomizeSample
runs
the number of permutations to create the distribution, a rule of thumb is (number of communities)/alpha
it
the number of swaps for the independent and trial-swap null models, see randomizeSample
alpha
probability value to compare the observed mean/correlations to a null distribution