-
Notifications
You must be signed in to change notification settings - Fork 7
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
Treatment values change when ratio
argument is used?
#213
Comments
I had a look at the code and the difference is this line: Line 391 in d40d33d
c(.5, .5) it produces the same out put as trtObserve uses length(formulas) to set ncat which is then used to generate the values.
That line takes advantage of the fact that |
Also @maxdrohde thanks for the well structured issue with reprex and everything 10/10! 🎉 |
I agree that the result is not ideal, and I agree that it should be changed. I do have concerns that it might impact some users who have learned to live with it. As an aside, if you use
|
I just want to make clear what would be the ideal behavior. It seems to me that with two categories, the result should always be 0/1, and never 1/2. @maxdrohde Is that what you were thinking as well? |
@kgoldfeld Yes, just using 0/1 sounds good to me. My main concern was just that it wasn't consistent. Thanks for looking into this! |
@maxdrohde Just wanted to let you know that the behavior of |
I am confused by the following result. Why does adding the
ratio
argument change the treatment label from 0,1 to 1,2?Thank you for creating this package, just curious to know if I'm missing something here!
Case 1
Input
Output
Case 2
Input
Output
The text was updated successfully, but these errors were encountered: