-
Notifications
You must be signed in to change notification settings - Fork 79
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
Success should always be defined #57
Comments
Yeah, changing around those default makes sense to me. One thing that's frustrating is that in the one sample case, we have a different and maybe more compact way of specifying this sort of thing higher up in the chain:
I guess we're addressing another issue here, but another option for the one sample case where the parameter is fully specified in |
I was just about to comment on this @andrewpbray. That it looks odd to specify in both places -- in
Two comments here:
We could say we need to be consistent and make both strings because I can't imagine |
Yep, I agree with your assessment. Such are the compromises when trying to make onetruetest =/ |
Maybe the right thing to do is to "specify" the success in the |
Hunh, interesting idea. I had thought of
That way we'd only need to use the named vector thing for the GoF case. I'm for it. @ismayc ? |
I like adding the |
Hopefully this is addressed in the current PR. |
@andrewpbray I didn't realize you were working on it. I was independently too. I'm going to wait for this PR to be merged to rework the |
Closed by fd5bbf7. |
This issue 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. |
In working on a solution for #53 I realized that if
success
isn't defined by the user we make an assumption and use the first level as success. I don't think this is a good approach because it makes the function "just work" without the student properly formulating the inference chain. I propose removing https://github.com/andrewpbray/infer/blob/f034a8629dd42c83d4fbb33dd1b80324262dbb12/R/calculate.R#L60 and https://github.com/andrewpbray/infer/blob/f034a8629dd42c83d4fbb33dd1b80324262dbb12/R/calculate.R#L61 and instead throwing an error saying success must be defined when the response variable is categorical. I can put that in the same PR as theorder
solution.Also, as far as I can tell currently the
"diff in props"
example isn't working sincesuccess
functionality isn't built into the difference in proportions case (only the single proportion).The text was updated successfully, but these errors were encountered: