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

Weighted Mean #123

Open
JakeZw opened this issue Jul 11, 2022 · 1 comment
Open

Weighted Mean #123

JakeZw opened this issue Jul 11, 2022 · 1 comment

Comments

@JakeZw
Copy link

JakeZw commented Jul 11, 2022

When I follow along the help for mean

`julia> using Statistics

julia> n=20;

julia> x=rand(n);

julia> w=rand(n);

julia> mean(x, weights(w))`

I get an error until I enter

using StatsBase

The help for mean (and all stats functions that have the weighted option) should make it clear that this method requires StatsBase.

@nalimilan
Copy link
Member

This only happens if you have already loaded StatsBase though. Anyway the plan is to merge StatsBase and Statistics, which should fix this.

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