Description Usage Arguments Details Value References See Also Examples
Reciprocal nonmetric multidimensional scaling (NMDS) to estimate external exchangeability of two datasets.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
tw |
list of species and environment matrices, of class ‘twin’ |
method |
dissimilarity index, per |
zeroadj |
default |
step |
default |
k |
number of dimensions sought in final NMDS solution |
... |
additional arguments passed to function |
x, object |
result from |
type |
for plotting, one of |
leg |
logical, should legend be plotted? |
noaxes |
default |
Reciprocal NMDS with recip_nmds
estimates external
exchangeability of two candidate datasets. The premise of
reciprocal NMDS is to calibrate each of two models with each
respective dataset, mutually exchanging datasets among the
alternative ordination models, then determining how well each
dataset fit the alternative model. This is really just a special
case of 2-fold cross-validation as applied to NMDS. The primary
use of reciprocal NMDS is to test the null hypothesis that two
multivariate datasets are exchangeable.
List of class ‘recip_nmds’ with elements:
m1
:Reciprocal model 1, calibrated with dataset 1 then swapping in dataset 2.)
m2
:Reciprocal model 2, calibrated with dataset 2 then swapping in dataset 1.)
grp
:Vector identifying group membership in dataset 1 or 2.
sumtab
:data.frame
summary table, with elements:
Partial intermodel fit for group 1, group 2 data (i.e., how well each dataset fits the opposing calibration model).
Complete intermodel fit (degree of overall external exchangebility among the two datasets, measured as Procrustean agreement of the two reciprocal models).
Respective stress of models 1,2.
Respective variance explained of models 1,2.
Kruskal, J. B. 1964. Multidimensional scaling by optimizing goodness of fit to a nonmetric hypothesis. Psychometrika 29: 1-27.
resamp_nmds
for resampled NMDS, and
nearestspecies
to force same number of rows
among candidate datasets.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | # prepare two candidate datasets (here we just modify one)
set.seed(231)
data(smoky)
spe1 <- smoky$spe
env1 <- env2 <- smoky$env
spe2 <- spe1 + abs(rnorm(prod(dim(spe1)), 0, 2)) # add noise
tw <- twin(spe1, spe2, env1, env2)
# reciprocal NMDS
r <- recip_nmds(tw)
summary(r)
plot(r)
plot(r, 'text')
plot(r, 'twin')
plot_marg_grp(r)
plot_axismatch(r)
plot_axismatch(r, ann=FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.