Elements of a sampling design

R ile Anket Verilerini Analiz Etme

Kelly McConville

Assistant Professor of Statistics

Simple random sampling

Map of Pennsylvania

R ile Anket Verilerini Analiz Etme

Simple random sampling

Map of Pennsylvania with dots representing sampled residents

library(survey)
srs_design <- svydesign(data = paSample,
                        weights = ~wts,
                        fpc = ~N, id = ~1)
R ile Anket Verilerini Analiz Etme

Simple random sampling

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

R ile Anket Verilerini Analiz Etme

Simple random sampling

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

R ile Anket Verilerini Analiz Etme

Stratified sampling

Map of Pennsylvania with each county a different color

R ile Anket Verilerini Analiz Etme

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)
R ile Anket Verilerini Analiz Etme

Cluster sampling

Map of Pennsylvania with each county a different color

R ile Anket Verilerini Analiz Etme

Cluster sampling

Map of Pennsylvania with the five sampled counties in black

R ile Anket Verilerini Analiz Etme

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)
R ile Anket Verilerini Analiz Etme

Let's practice!

R ile Anket Verilerini Analiz Etme

Preparing Video For Download...