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

Pairwise comparison in betadisper - when to adjust for small sample size or unequal sample sizes #423

Open
ibrila opened this issue May 27, 2021 · 3 comments

Comments

@ibrila
Copy link

ibrila commented May 27, 2021

Hi,

I was wondering if there is a rule of thumb on when to adjust for small or unequal sample sizes in betadisper? I guess small sample size depends on the context of the study, but not sure how big the difference in sample sizes between groups has to be to warrant bias adjustment?

Thanks

@jarioksa
Copy link
Contributor

jarioksa commented May 27, 2021

Bias adjustment is √[n/(n – 1)], where n is the group size (see ?betadisper). If n is large, the adjustment is nearly 1 and does not adjust results in any way. For n = 5, adjustment is 1.12, and for n = 20 it is 1.03. You may either ponder whether you need to use this adjustment, or you can always use it: it does not change the results if it doesn't matter, and it matters only if it changed the results. See the paper cited in the help page (Stier et al., 2013).

@ibrila
Copy link
Author

ibrila commented May 28, 2021

Thank you for explaining! It seems that using it is the safest option in most cases.

@jarioksa
Copy link
Contributor

jarioksa commented May 28, 2021

I don't remember why bias adjustment was not made default — it was back in 2012. Perhaps to have the same default as the old function and the one used in other software, or because the method was still unpublished when it was implemented in vegan. Perhaps @bbolker remembers (and perhaps he gives his recommendation of the default argument – and I would follow).

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