Survey.jl icon indicating copy to clipboard operation
Survey.jl copied to clipboard

Create multistage stratified sample from `apipop`

Open smishr opened this issue 1 year ago • 6 comments

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

  • [ ] Draw a multistage stratified sample from assets/apipop
  • [ ] Save it as assets/apimultistrat

Keep it as flat file (.csv) for now

smishr avatar Mar 01 '23 05:03 smishr

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

ayushpatnaikgit avatar Mar 07 '23 04:03 ayushpatnaikgit

@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

smishr avatar Mar 07 '23 04:03 smishr

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

ayushpatnaikgit avatar Mar 07 '23 05:03 ayushpatnaikgit

yes i have that code somewhere in my testing R file

smishr avatar Mar 07 '23 11:03 smishr

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

ayushpatnaikgit avatar Mar 09 '23 04:03 ayushpatnaikgit

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

smishr avatar Mar 09 '23 05:03 smishr