testTrend: testTrend

View source: R/testTrend.R

testTrendR Documentation

testTrend

Description

A collection of tests to compare the trend of data with comparison data

Usage

testTrend(x, xc, t = 40)

Arguments

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

Details about the employed tests can be found here: http://redmine.pik-potsdam.de/projects/x-intern/wiki/Traffic_light_validation

Value

A named vector containing results of multiple tests for the single combination of data and comparison data.

Author(s)

Markus Bonsch, Jan Philipp Dietrich

See Also

TLstatistics,trafficlight

Examples


#create some test data
test <- 1:80; names(test) <- 1995:2074
x <- test
xc <- test + rnorm(30)
names(xc) <- 1925:2004

testOverlap(x,xc)


pik-piam/trafficlight documentation built on Jan. 27, 2024, 5:32 a.m.