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

Add subset() style function #185

Open
smishr opened this issue Jan 19, 2023 · 5 comments
Open

Add subset() style function #185

smishr opened this issue Jan 19, 2023 · 5 comments
Assignees
Labels
enhancement New feature or request high priority High priority tasks, eg. relating to release logic heavy For if-elseif-else ladders, type checking, logic heavy tasks

Comments

@smishr
Copy link
Contributor

smishr commented Jan 19, 2023

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

@smishr smishr added enhancement New feature or request high priority High priority tasks, eg. relating to release logic heavy For if-elseif-else ladders, type checking, logic heavy tasks labels Jan 19, 2023
@ayushpatnaikgit
Copy link
Member

It's simple to add for replicate design, it's just a subset from DataFrames.

@EngPeterAtef
Copy link

I would like to work on this issue

@ayushpatnaikgit
Copy link
Member

Hi @EngPeterAtef
Sorry, I am not sure why I didn't get a notification when you commented. Apologies for the delay.

@ayushpatnaikgit
Copy link
Member

@EngPeterAtef

We want to implement this function in Julia: https://r-survey.r-forge.r-project.org/survey/html/subset.survey.design.html

@EngPeterAtef
Copy link

On it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request high priority High priority tasks, eg. relating to release logic heavy For if-elseif-else ladders, type checking, logic heavy tasks
Projects
None yet
Development

No branches or pull requests

3 participants