Mann-Kendall with Missing Values and Same Values
% 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
Platform Compatibility
Windows macOS LinuxCategories
- Engineering > Civil and Environmental Engineering > Environmental Engineering >
- AI and Statistics > Statistics and Machine Learning Toolbox > Probability Distributions and Hypothesis Tests > Hypothesis Tests >
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0 |
