Creating Survey Objects in surveycore4 months ago
Introduction | 1. Decision Guide | Common surveys at a glance | 2. as_survey() — Taylor Series Designs | 2.1 Core arguments | 2.2 The nest argument | 2.3 The fpc argument | 2.4 Multi-level clustering | 2.5 Worked example: NHANES 2017–2018 | 2.6 Worked example: ANES 2024 | 2.7 Worked example: GSS 2024 | 2.8 Worked example: Pew NPORS 2025 | 3. as_survey_replicate() — Replicate Weight Designs | 3.1 The type argument | 3.2 Worked example: ACS PUMS 2022 — Wyoming | 3.3 Worked example: Pew Jewish Americans 2020 | 3.4 The scale and rscales arguments | 4. as_survey_twophase() — Two-Phase Designs | 4.1 What two-phase sampling is | 4.2 Arguments | 4.3 Worked example: National Wilms Tumor Study | 5. Simple Random Sample with as_survey() | 5.1 The fpc argument matters more here | 5.2 Worked example: School district survey | 6. as_survey_nonprob() — Non-Probability Samples | 6.1 The fundamental distinction | 6.2 Variance estimation: two modes | Choosing type | 6.3 What you can and cannot claim | 6.4 Worked example: Democracy Fund + UCLA Nationscape (SRS approximation) | 6.5 Worked example: Bootstrap replicate weights | 6.6 Worked example: University snowball sample | 7. When no constructor applies: convenience and purposive samples | 7.1 Example: program evaluation classrooms | 7.2 General decision rule | 8. Reference: Common Codebook Variables | References