xKDR / Survey.jl

Analysis of complex surveys
https://xkdr.github.io/Survey.jl/
GNU General Public License v3.0
53 stars 19 forks source link

Create multistage stratified sample from `apipop` #273

Open smishr opened 1 year ago

smishr commented 1 year ago

Multistage stratified surveys have stratas and clustering.

I suggest drawing a sample from apipop with strata and clustering and export it in assets/. Use that data for testing the various algorithms in Survey.jl

Keep it as flat file (.csv) for now

ayushpatnaikgit commented 1 year ago

@britgyu wants to do this. @smishr are you confident this is a “good first issue”?

smishr commented 1 year ago

@britgyu wants to do this. @smishr are you confident this is a “good first issue”?

yes. they should give link to the code they used for drawing the multi stage sample, so we can double check and tweak if needed

ayushpatnaikgit commented 1 year ago

I remember there being a page where the author using dplyr to create sample datasets from apipop. Do you remember?

smishr commented 1 year ago

yes i have that code somewhere in my testing R file

ayushpatnaikgit commented 1 year ago

Can you dig out the link? I remember it was using srvyr

smishr commented 1 year ago

Click on drop down arrow where it says "Show R Code to make data" on this blog post