JuliaStats / HypothesisTests.jl

Hypothesis tests for Julia
Other
292 stars 87 forks source link

Feature Request: Add examples to documentation. #278

Open bear-jordan opened 1 year ago

bear-jordan commented 1 year ago

Hi, I would like to add coded examples for each method in the documentation to provide clear examples of implementation for new users. Would y'all have any interest in this project?

Right now, the documentation for an individual method looks like this...

HypothesisTests.EqualVarianceTTest EqualVarianceTTest(nx::Int, ny::Int, mx::Real, my::Real, vx::Real, vy::Real, μ0::Real=0)

Perform a two-sample t-test of the null hypothesis that samples x and y described by the number of elements nx and ny, the mean mx and my, and variance vx and vy come from distributions with equals means and variances. The alternative hypothesis is that the distributions have different means but equal variances. Implements: pvalue, confint

At the end of the project, the documentation would include the coded section as seen below.

HypothesisTests.EqualVarianceTTest EqualVarianceTTest(nx::Int, ny::Int, mx::Real, my::Real, vx::Real, vy::Real, μ0::Real=0)

Perform a two-sample t-test of the null hypothesis that samples x and y described by the number of elements nx and ny, the mean mx and my, and variance vx and vy come from distributions with equals means and variances. The alternative hypothesis is that the distributions have different means but equal variances. Implements: pvalue, confint

a1 = [30.02, 29.99, 30.11, 29.97, 30.01, 29.99]
a2 = [29.89, 29.93, 29.72, 29.98, 30.02, 29.98]
result = EqualVarianceTTest(a1, a2)

To complete the project, I plan to adapt the examples from the unit tests. I think it should be pretty straight forward!

Also, I looked for contribution guidelines but haven't seen any–have these been developed? Sorry if I missed them.

Best, Bear Jordan

ararslan commented 1 year ago

Hi there, apologies for not responding sooner. If you're still willing to work on this, that sounds like a wonderful contribution!

We don't have any documented contribution guidelines (at least that I know of). The things I generally recommend in any context are:

ShrutiRDalvi commented 5 months ago

hello, is someone working on this already? if not I'd love to work on it. I'm new to opensource so any guidelines on how to go about it would help, thanks a lot!

bear-jordan commented 5 months ago

Hi, I am not working on it. Not sure if anyone else has picked it up though. Hope it goes well!

mschauer commented 5 months ago

Go for it!