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

Adding a "weights" option #149

Open
aljoscha-j opened this issue Nov 19, 2021 · 0 comments
Open

Adding a "weights" option #149

aljoscha-j opened this issue Nov 19, 2021 · 0 comments
Labels
feature a feature request or enhancement

Comments

@aljoscha-j
Copy link

Would it be possible to add a "weights" option?

Most tidyverse packages do not really support weights and there is probably a good reason for that. Still, weights can be important when using survey data.

I am not an expert at package writing, but since no standard errors are needed this could be done by multiplying the observations with an integer weight internally before calculating the correlations. Granted, this is quite easily done in the tidyverse (e.g. tidyr::uncount), but I still think it would improve usability if this option was built in?

All the best!

@juliasilge juliasilge added the feature a feature request or enhancement label Mar 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature a feature request or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants