-
Notifications
You must be signed in to change notification settings - Fork 4
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
as_tibble.egor(), as_alters_df(), and as_aaties_df() should include design information when the ego has a design. #53
Comments
Yes, this would be a consistent way to handle I ran the code and it works fine. With the A side note on |
I am thinking of implementing essentially |
Actually, there's an even simpler solution: I had forgotten that we've had a workaround needed for |
On even further thought, In particular, a user might start out with an SRS of egos (and so not specify a design), but the alter list would then be a cluster sample with their egos being the clusters. If they want that information, they can use |
* as_survey_design.egor() is gone. * as_survey.egor() behaves the same as as_tibble.egor(), but returns a tbl_svy object (regardless of whether the egor has ego design). * as_egos_df() has been added for consistency. * as_(egos|alters|aaties)_survey() have been added, analogous to as_*_df() but returning a tbl_svy object. * as_tibble.egor() is has been moved to conversions.R. * as_tibble.egor() and as_survey.egor() are now documented in the same file as as_*_df() and as_*_survey(). References #14. Fixes #33, #53.
* as_survey_design.egor() is gone. * as_survey.egor() behaves the same as as_tibble.egor(), but returns a tbl_svy object (regardless of whether the egor has ego design). * as_egos_df() has been added for consistency. * as_(egos|alters|aaties)_survey() have been added, analogous to as_*_df() but returning a tbl_svy object. * as_tibble.egor() is has been moved to conversions.R. * as_tibble.egor() and as_survey.egor() are now documented in the same file as as_*_df() and as_*_survey(). References #14. Fixes #33,#53.
OK, I've implemented these changes. It passes the checks, and I hope this is something that makes sense in the grander project. (If not, we can always revert.) |
At the moment, the design information is thrown away. Unfortunately,
srvyr
does not support joins and similar, but it does support indexing, and, also, as far as I can tell, the variables are stored separately from the design information, so it should, in principle, be possible to handle, say, alter table extraction, as follows:Any thoughts?
The text was updated successfully, but these errors were encountered: