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

Implement the standardized proportion z statistic for one categorical variable #351

Merged
merged 1 commit into from
Dec 21, 2020

Conversation

simonpcouch
Copy link
Collaborator

In working through #347, I realized that we had yet to implement a standardized proportion z statistic for one categorical variable.

It seems like there was previously an implementation that was no longer dispatched to, returning x itself instead of the statistic. (I think we should raise a similar warning to the one that's currently commented out in those situations. Glad to put in a PR there if others are on board.) I just resituated the implementation, updating its references to the internals of the x object and making sure hypothesize() brings along the appropriate attributes.

🐏

Copy link
Collaborator

@echasnovski echasnovski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this looks great!
It seems that 'calculate.R' needs some refactoring love, because those if()s are hard to read. But that is another story.

@echasnovski echasnovski merged commit 18c723b into develop Dec 21, 2020
@simonpcouch simonpcouch deleted the one-sample-prop-z branch December 21, 2020 20:16
simonpcouch added a commit that referenced this pull request Dec 22, 2020
need the new z functionality from #351
@github-actions
Copy link

github-actions bot commented Mar 8, 2021

This pull request has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants