Get Mann-Kendall Test Decision
get_MKH.Rd
Extracts the hypothesis test result (H) from the Generalized Mann-Kendall trend test, indicating whether a significant trend exists.
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 :
'INDE', assume independence (i.e. the standard MK test)
'AR1', assumes AR1 short-term dependence structure (i.e. Hamed and Rao's version of the MK test)
'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