Elements of a sampling design

Enquêtedata analyseren in R

Kelly McConville

Assistant Professor of Statistics

Simple random sampling

Map of Pennsylvania

Enquêtedata analyseren in R

Simple random sampling

Map of Pennsylvania with dots representing sampled residents

library(survey)
srs_design <- svydesign(data = paSample,
                        weights = ~wts,
                        fpc = ~N, id = ~1)
Enquêtedata analyseren in R

Simple random sampling

Map of Pennsylvania with dots representing sampled residents and both Pittburgh and Philadelphia highlighted

Enquêtedata analyseren in R

Simple random sampling

Map of Pennsylvania with dots representing sampled residents and both Pittburgh and Philadelphia highlighted.  Warren and McKean counties are colored green.

Enquêtedata analyseren in R

Stratified sampling

Map of Pennsylvania with each county a different color

Enquêtedata analyseren in R

Stratified sampling

Map of Pennsylvania with each county a different color and dots representing sampled residents

library(survey)
stratified_design <- svydesign(data = paSample, id = ~1, weights = ~wts, 
                               strata = ~county, fpc = ~N)
Enquêtedata analyseren in R

Cluster sampling

Map of Pennsylvania with each county a different color

Enquêtedata analyseren in R

Cluster sampling

Map of Pennsylvania with the five sampled counties in black

Enquêtedata analyseren in R

Cluster sampling

Map of Pennsylvania with the five sampled counties in black and dots representing sampled residents

library(survey)
cluster_design <- svydesign(data = paSample, id = ~county + personid, 
                            fpc = ~N1 + N2, weights = ~wts)
Enquêtedata analyseren in R

Let's practice!

Enquêtedata analyseren in R

Preparing Video For Download...