-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NaN output in 'Hamed and Rao Modified MK Test' #29
Comments
I am also running into the same issue. Var_s is negative, while z and p are NaN, as a result.
I have 6 sets of data that have this issue. The issue seems to occur when n_ns is negative, which is traced back to elements of acf_1 being negative.
Where indices 2 and 3 fail the requirement of the if statement. |
I had the same issue with the following data, that results to a As a fix, I suggest to apply
|
I'm running a modified MK test on a couple of short time series:
And I'm running into a weird result with the second time series, where
var_s
has a negative value andz
andp
values become NaN as a result:The text was updated successfully, but these errors were encountered: