You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If null hypothesis = data comes from population with independent realizations and are identically distributed, the alternative hypothesis is that the data follows a monotonic trend. This is calculated with the two tailed test and currently implemented in the script.
However, if the alternative is indeed an "increasing trend" or "decreasing trend" (as currently returned in the script) p values should be calculated with the single tail of the distribution.
If null hypothesis = data comes from population with independent realizations and are identically distributed, the alternative hypothesis is that the data follows a monotonic trend. This is calculated with the two tailed test and currently implemented in the script.
However, if the alternative is indeed an "increasing trend" or "decreasing trend" (as currently returned in the script) p values should be calculated with the single tail of the distribution.
See:
Implementation in the trend package in R.
Suggest adding an argument for users to specify the alternative.
Thanks to Moshe Elitzur for identifying this.
The text was updated successfully, but these errors were encountered: