slopediff | R Documentation |
Functions fit linear regression on distances within blocks and across blocks and compere their slopes using permutation tests.
slopediff(ydist, xdist, block, nperm = 999)
slopediff2(ydist, xdist, block, nperm = 999)
## S3 method for class 'slopediff'
plot(x, col = 1, obsline = TRUE, ...)
## S3 method for class 'slopediff'
summary(object, ...)
ydist , xdist |
Dependent and indpendent dissimilarities. |
block |
Blocking of sites. |
nperm |
Number of simple permutations. |
x |
Result output from |
col |
Plotting colour. |
obsline |
Draw line on observed statistic in the
|
... |
Other parameters passed to |
object |
Result object from |
Functions are intended to analyse the differences of linear Mantel
regression within and across blocks. Typically the dependent
dissimilarities (ydist
) are based on community data,
independent dissimilarities (xdist
) are based on
environmental data, and block
defines subsets of data, such
as geographical subareas.
Functions slopediff
and slopediff2
differ in their
permutation models. Function slopediff
permutes the
classification vector defining block
s, and keeps the
dependent (ydist
) and independent (xdist
) pairs of
dissimilarities fixed. Function slopediff2
permutes
dependent data, and keeps block
s and dependent distances
fixed.
Jari Oksanen
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.