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

Effectsize measurement with unbalaced data #166

Open
Merlin31415 opened this issue Feb 19, 2024 · 1 comment
Open

Effectsize measurement with unbalaced data #166

Merlin31415 opened this issue Feb 19, 2024 · 1 comment

Comments

@Merlin31415
Copy link

Merlin31415 commented Feb 19, 2024

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

@sunroofgod
Copy link
Collaborator

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants