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 t-test for cases where only stats are known #237

Merged
merged 2 commits into from Jun 15, 2021
Merged

Add t-test for cases where only stats are known #237

merged 2 commits into from Jun 15, 2021

Conversation

rikhuijzer
Copy link
Contributor

I was trying to reproduce some t-tests conducted in a paper, but could not with HypothesisTests to my surprise.

This PR adds a EqualVarianceTTest for situations when only the statistics (mean, variance and sample size) are known.

The new extra EqualVarianceTTest is tested in the tests and I also verified it with a paper: I got exactly the same results as a paper reported. The paper was using SPSS.

@rikhuijzer
Copy link
Contributor Author

In 4be6509, I've fixed the indentation by using tabs in test/t.jl in line with the rest of that file. src/t.jl is using spaces. To ease review, I won't refactor the indentation in test/t.jl.

@rikhuijzer
Copy link
Contributor Author

@andreasnoack could you take a look at these changes? :)

@andreasnoack andreasnoack merged commit dd35ae0 into JuliaStats:master Jun 15, 2021
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

Successfully merging this pull request may close these issues.

None yet

2 participants