Mann-Kendall with Missing Values and Same Values

Version 1.0.0 (1.74 KB) by Taesam Lee
Mann-Kendall Test with Missing Values and the same data values
131 Downloads
Updated 27 Feb 2019

View License

% Mann-Kendall Test with Missing Data and Same Values
Gilbert RO (1987) Statistical Methods for Environmental Pollution Monitoring
Input Value
X: time series
alp: confidence level (default: 0.05)
miss_ind: Missing Value Indicator (default: NaN)
Output Value
H: Hypothesis 0 or 1
Reject of Null Hypthesis [0] Insufficient evidence to reject the null hypothesis
P_value: P statistics
Z: Z statistics
StdS: Standard deviation of S
% Example : X=1:10, [H, P_value,Z,StdS]=MKwMiss(X,0.05,NaN)
Answer: H: 1, P_value: 8.3031e-05
Z: 3.9355, StdS: 11.1803

Cite As

Taesam Lee (2026). Mann-Kendall with Missing Values and Same Values (https://www.mathworks.com/matlabcentral/fileexchange/70408-mann-kendall-with-missing-values-and-same-values), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2018b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags
Version Published Release Notes
1.0.0