Survey.jl
Survey.jl copied to clipboard
Add `subset()` style function
In R, there is a subset
function which is a transformation from SurveyDesign->SurveyDesign and ReplicateDesign->ReplicateDesign such that the domain of the survey is restricted to given condition (eg age>18 or sex="Male"). Subpopulation estimates are then calculated with any API function like mean
total
etc (instead of the full population estimate)
How to implement this? for replicate design R code is given line 667 here, for SurveyDesign
given line 314 here
It's simple to add for replicate design, it's just a subset from DataFrames.
I would like to work on this issue
Hi @EngPeterAtef Sorry, I am not sure why I didn't get a notification when you commented. Apologies for the delay.
@EngPeterAtef
We want to implement this function in Julia: https://r-survey.r-forge.r-project.org/survey/html/subset.survey.design.html
On it