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

Make _power consider both sides #26

Merged
merged 1 commit into from
Oct 11, 2024

Conversation

andreasnoack
Copy link
Collaborator

As mentioned in #25, the results differ a bit from pwr.t.test and G*Power because the current implementation doesn't consider the tail with the smaller probability. As a consequence, get_power with es=0 returns alpha/2 in the current implementation but alpha with this PR.

@rikhuijzer
Copy link
Owner

Same comment as #25 (comment):

Looks good to me 👍 You have push access to this repo now. Feel free to merge once you're happy and also feel free to create releases if you want.

both sides by switching to root finding over _power. Adjust root
finding for get_es
@andreasnoack andreasnoack enabled auto-merge (squash) October 11, 2024 15:35
@andreasnoack andreasnoack merged commit 3d691f6 into rikhuijzer:main Oct 11, 2024
5 checks passed
@andreasnoack andreasnoack deleted the an/twosided branch October 11, 2024 15:39
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.

2 participants