Effectsize measurement with unbalaced data
Merlin31415 opened this issue · 9 comments
Hello,
I tried to run a script i have written last year and found that i am no longer able to calculate effectsize with dabestR with unbalanced data. I used to be able to get results regardless of the sampe size in each group.
Here an example with the data provided from dabest but removing one data point.
data(non_proportional_data)
test <- non_proportional_data
test <- test %>%
slice(-5)
dabest_obj <- load(test,
x = Group, y = Measurement,
idx = c("Control 1", "Test 1")
)
dabest_obj.mean_diff <- mean_diff(dabest_obj)
This leads to Error in PermutationTest(ctrl_measurement, test_measurement, effect_size = effect_size_type, : The two arrays do not have the same length.
Is it possible that that this is no longer supported or am I missing something?
Best,
Merlin
Hi @Merlin31415, sorry for the late reply!
This issue has been addressed previously and resolved in the latest version that is available on the development branch.
You may update your version of dabestr to the development version via:
devtools::install_github(repo = "ACCLAB/dabestr", ref = "dev")
You may also see the issue thread regarding the same issue here: #154.
Hope this helps :)