Mulai sekarangMulai gratis

Cluster designs in R

Now let's practice specifying a cluster sampling design, using the dataset apiclus2. The schools were clustered based on school districts, dnum. Within a sampled school district, 5 schools were randomly selected for the sample. The schools are denoted by snum. The number of districts is given by fpc1 and the number of schools in the sampled districts is given by fpc2.

Latihan ini merupakan bagian dari kursus

Analyzing Survey Data in R

Lihat Kursus

Latihan interaktif langsung praktik

Cobalah latihan ini dengan melengkapi kode contoh ini.

# Glimpse the data
glimpse(___)
Edit dan Jalankan Kode