testTrend | R Documentation |
A collection of tests to compare the trend of data with comparison data
testTrend(x, xc, t = 40)
x |
a data vector of a single data set named and sorted by years |
xc |
a data vector of a single data set named and sorted by years |
t |
window size in years for which the trend should be tested. It is tried to create a window -t/2 to t/2 around the start year for trend testing. If this does not work the window can be moved in the range of -t to t around the start year to find comparison data. Comparison data is shifted from the given window to start year to start year + t for analysis |
Details about the employed tests can be found here: http://redmine.pik-potsdam.de/projects/x-intern/wiki/Traffic_light_validation
A named vector containing results of multiple tests for the single combination of data and comparison data.
Markus Bonsch, Jan Philipp Dietrich
TLstatistics
,trafficlight
#create some test data
test <- 1:80; names(test) <- 1995:2074
x <- test
xc <- test + rnorm(30)
names(xc) <- 1925:2004
testOverlap(x,xc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.