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

Add Freedman-Diaconis Rule? #36

Open
neilhatfield opened this issue May 17, 2023 · 0 comments
Open

Add Freedman-Diaconis Rule? #36

neilhatfield opened this issue May 17, 2023 · 0 comments

Comments

@neilhatfield
Copy link
Member

Something to think about adding to boastUtils is a function that we can call to apply the Freedman-Diaconis rule for calculating the width of bins for histograms. For example,

freedmanDiaconis <- function(x){ifelse(IQR(x) == 0, 0.1, 2 * IQR(x) / (length(x)^(1/3)))}

In appUtils.R?

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

1 participant