R scripts for Tutorials on Sampling Designs - STAT 410

The tutorals follow the textbook Sampling by Steven K. Thompson, Third Edition and tutorials by Shirin Golchi. The data sets are from the basic R library and from these sites: Data Sets 1 and Flickr Data.

Tutorial 1

Warming up with R

Tutorial 2

SRS without replacement

Tutorial 3

CLT and SRS without replacement, data file

Tutorial 4

Sample size, data set

Tutorial 5

Sampling distributions of sample mean, Hansen-Hurwitz, Horvitz-Thompson estimators

Tutorial 6

Variances of Hansen-Hurwitz and Horvitz-Thompson estimators through simulations

Tutorial 7

Ratio Estimator sampling distribution and Model Based inference simulations

Tutorial 8

Comparing stratificaion designs with different allocation of sample sizes within a stratum

Tutorial 9

Comparing different allocation of sample size within a stratum and Cluster sampling design, Data Set

Tutorial 10

Systematic sampling and Cluster sampling through simulations, Data Set

Tutorial 11

Hansen-Hurwitz and Horvitz-Thompson with Cluster Design and simulations from Multi-Stage design, Data Set

Tutorial 12

Network Sampling design, parallel computing and using sql within R, Data Set