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
Population variance and ability to suppress computation of standard errors #48
Conversation
Wow, awesome, thank you so much! I'll take a look in the next week or so! |
Codecov Report
@@ Coverage Diff @@
## master #48 +/- ##
==========================================
+ Coverage 79.44% 81.17% +1.72%
==========================================
Files 17 17
Lines 905 956 +51
==========================================
+ Hits 719 776 +57
+ Misses 186 180 -6
Continue to review full report at Codecov.
|
I hope to implement joins (apart of full join and right join) in the future - they're reasonable if only there is no one-to-many relations between survey object data and data that is to be joined. So this is something that has to be checked before doing actual join and if such relations are found, it will throw an error. With inner, semi and anti joins subsetting of the survey design information must be also implemented but it won't be hard to do with all the functions that are already in the package. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, not quite one week, sorry about that!
This is great, but a few minor comments. Do you have time to fix them? I really appreciate it.
I can fix this issues tomorrow evening. |
I didn't manage yesterday - I started to rewrite tests regarding Regarding CI for |
No worries, thanks for the update! Yeah that makes a lot of sense to me, I’ve generally tried to defer the statistical reasoning to the survey package, as it makes support easier. A warning in the documentation seems like a reasonable compromise to me. |
Ugh, sorry that took me so long, it's been a month of sickness in my house. Thank you so so much for your work! |
Great! :) |
Yep, will do a full CRAN release soon |
Hi!
survey_var
andsurvey_sd
allowing computation of population variance and standard deviation (withsvyvar
underneath). I also added some basic tests of this functions to test_survey_statistics.r.survey_
functions, so it is possible to suppress computation of (any kind of) standard errors (resolving Calculating contingency tables without showing SE #45 ). And I also addeddrop=FALSE
to one row insummarise.grouped_svy
so it is able to carry on with such results.survey_median
don't add "_q50" suffix to names of all the variables it generates.survey_
functions a little more consistent.Hope it will be somehow helpful.