Skip to content
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

add two-sided or single sided test options #10

Open
mps9506 opened this issue Sep 13, 2018 · 0 comments
Open

add two-sided or single sided test options #10

mps9506 opened this issue Sep 13, 2018 · 0 comments

Comments

@mps9506
Copy link
Owner

mps9506 commented Sep 13, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant