schools {SDAResources} | R Documentation |
schools data
Description
Math and reading test results from a two-stage cluster sample of tenth-grade students. An SRS of 10 schools was selected from the 75 schools in the population, and then 20 students were sampled from each school. These data are fictional but the summary statistics are consistent with those seen in educational studies.
Usage
data(schools)
Format
This data frame contains the following columns:
- schoolid:
school number (use as cluster variable)
- gender:
gender of student (character variable, F = female, M = male)
- math:
score on math test
- reading:
score on reading test
- mathlevel:
category level for math test score:
1 if 1 <= math <= 40
2 if 41 <= math
- readlevel:
category level for reading test score:
1 if 1 <= read <= 32
2 if 33 <= read <= 50
- Mi:
number of students in school,
M_i
- finalwt:
weight for student in sample
References
Lohr (2021), Sampling: Design and Analysis, 3rd Edition. Boca Raton, FL: CRC Press.
Lu and Lohr (2021), R Companion for Sampling: Design and Analysis, 3rd Edition, 1st Edition. Boca Raton, FL: CRC Press.