-
Notifications
You must be signed in to change notification settings - Fork 34
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
Misaligned mean difference line #29
Comments
Sorry for the delay. I'm seeing this on my end as well; definitely a bug. You can use www.estimationstats.com to produce the correct Gardner-Altman plot. Will let you know once I've squashed this bug! PS. We are working on more effective ways to display proportions. (Here, I assume each data point is a proportion already?) |
More troubleshooting. library(tidyverse)
set.seed(12345)
df <- cbind(data.frame(value=sample(1:9, 100, replace = TRUE)/10),
data.frame(grp=sample(c("A","B"), 100, replace = T))
)
df %>% group_by(grp) %>% count()
Using library(dabest)
df_analysed <- dabest(df, x = grp, y = value, idx = c("A", "B"))
df_analysed produces
Note how the N for |
This is likely to be related to #30 . For some reason, unequal group sizes jams up the munging.... |
Hi @johannesbjork , This bug occurs because library(dabest)
set.seed(12345)
df <- cbind(data.frame(value=sample(1:9, 100, replace = TRUE)/10),
# we rename the `grp` column to `ggrp`.
data.frame(ggrp=sample(c("A","B"), 100, replace = T))
)
df_analysed <- dabest(df, x = ggrp, y = value, idx = c("A", "B"))
plot(df_analysed) |
Pull request #43 fixes this. Run devtools::install.github('ACCLAB/dabestr') to install |
When plotting proportional data, I found that the mean difference line is not aligned to the mean difference distribution.
Here is an example.
The text was updated successfully, but these errors were encountered: