Skip to contents

Extracts the hypothesis test result (H) from the Generalized Mann-Kendall trend test, indicating whether a significant trend exists.

Usage

get_MKH(X, level = 0.1, time_dependency_option = "AR1")

Arguments

X

Numeric vector of values to test for trend

level

numeric in (0,1), level of the test.

time_dependency_option

string, option for handling temporal dependence. Available :

  1. 'INDE', assume independence (i.e. the standard MK test)

  2. 'AR1', assumes AR1 short-term dependence structure (i.e. Hamed and Rao's version of the MK test)

  3. 'LTP', assume long-term persistence (i.e. Hamed's version of the MK test)

Value

Logical value indicating test result:

  • TRUE if significant trend exists (reject null hypothesis)

  • FALSE if no significant trend (fail to reject null hypothesis)

Details

The H statistic indicates:

  • TRUE (significant trend) when p-value ≤ alpha

  • FALSE (no significant trend) when p-value > alpha

See also

GeneralMannKendall for the full test implementation

Examples

data(precipitation)
#> Warning: data set ‘precipitation’ not found
# Check for significant trend in precipitation
trend_exists <- get_MKH(precipitation$P)
#> Error: object 'precipitation' not found