Description Usage Arguments Details Value Author(s) Examples
Time lag analysis for a multivariate data set
1 2 3 4 |
x |
an R object. Only objects of class |
... |
additional arguments passed to other methods. |
Time lag analysis involves computing the compositional dissimilarity between samples at lag 1, at lag 2, etc, then the least squares slope between sqrt(lag) and dissimilarity.
Returns an object of class "timelagAnalysis"
, a list
with components
data frame; unpacked set of lags (Lag
) and
compositional dissimilarities (Distance
).
Gavin L. Simpson
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## load analogue for Abernethy data set & distance()
if (require("analogue")) {
## Load Abernethy Forest data set
data("abernethy", package = "analogue")
## Load Abernethy Forest data set
## Remove the Depth and Age variables
abernethy2 <- abernethy[, -(37:38)]
## time lag analysis
dij <- as.dist(distance(abernethy2, method = "chord"))
tla <- timelag(dij)
head(tla[[1]])
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.