A sample counts for the population only through its design. This module sets the survey’s design in svy: four strata in each province, one taken in full, the enumeration area as the cluster, the rows the design can use and the households its checks find out of place, and the finite population correction as population counts, where R’s survey packages also take fractions. It estimates totals by every domain, from one variable to four, with their standard errors, CVs and confidence intervals, then sets each weighted estimate beside the sample’s own counts at national, regional and provincial levels, and shows the R option of a design whose every weight is 1.
The last section maps ReGenesees to Python call by call. Each call is run two ways side by side: with svy, where it already exists, and with a function the course writes from the formula. Where no Python library has the call, the own function stands alone. Understand the problem, and the Python follows.
What you do
Section titled “What you do”- The design in words and in svy: weights, strata, PSUs, fpc, lonely PSUs
- Totals, means and proportions with SE, CV and CI by domain
- Weighted and unweighted
- From ReGenesees to svy, call by call
The module’s notebooks
Section titled “The module’s notebooks”- 50_design_estimates.pyModule 6: Estimate under the survey designRead itCompanion · 9 exercises
The notebooks are in your course folder; here you can read them without running anything. For reference in any module: primer: from r to python and primer: survey sampling in one page and glossary.
Quizzes
- Check-inAt the end of the module. A short check on “Estimate under the survey design”, and how ready you feel; its answers show as soon as you submit.Check-in: Estimate under the survey design ↗
The quizzes are on BNHR Quizzes and count toward nothing. Learning on your own, a quiz opens as the self-paced one; while a training runs, it asks which training you are in.