Survey sampling on one page: the design, strata and PSUs, weights, the finite population correction (as fractions or counts in R, as population counts in svy), the variance of a stratified estimate and its CV. A small worked example is computed both with svy and with a few lines of numpy, and they agree. The variance follows Lohr, Sampling: Design and Analysis.
Its notebooks
Section titled “Its notebooks”- 96_primer_survey_sampling.pyPrimer: survey sampling in one pageRead itCompanion · 2 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 glossary.