Learn R Programming

TTAinterfaceTrendAnalysis (version 1.5.9)

mannKen: Mann-Kendall trend test and the Sen slope (code modified from the former wq package)

Description

Applies Kendall's tau test for the significance of a monotonic time series trend. Also calculates the Sen slope as an estimate of this trend.

Usage

mannKen(x, ...)

Value

A list of the following if x is a vector:

sen.slope Sen

slope

sen.slope.rel

Relative Sen slope

p.value

Significance of slope

S

Kendall's S

varS

Variance of S

miss

Fraction of missing slopes connecting first and last fifths of x or a matrix with corresponding columns if x is a matrix or data frame.

Arguments

x

A numeric vector, matrix or data frame

...

Other arguments to pass to plotting function

Author

Alan D. Jassby and James E. Cloern

See Also

seaKen seasonTrend