R/schools.R

#' schools data
#'
#' 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.
#'
#'
#'
#' @format This data frame contains the following columns:
#'\describe{
#'\item{schoolid:}{school number (use as cluster variable)}
#'
#'\item{gender:}{gender of student (character variable, F = female, M = male)}
#'
#'\item{math:}{score on math test}
#'
#'\item{reading:}{score on reading test}
#'
#'\item{mathlevel:}{category level for math test score:
#'
#'1 if 1 <= math <= 40
#'
#'2 if 41 <= math
#'}
#'
#'\item{readlevel:}{category level for reading test score:
#'
#'1 if 1 <= read <= 32
#'
#'2 if 33 <= read <= 50
#'}
#'
#'\item{Mi:}{number of students in school, \eqn{M_i}}
#'
#'\item{finalwt:}{weight for student in sample}
#'}
#'
#'
#' @docType data
#'
#' @usage data(schools)
#'
#'
#'
#' @keywords datasets
#'
#' @references Lohr (2021), Sampling: Design and Analysis, 3rd Edition. Boca Raton, FL: CRC Press.
#' 
#'@references Lu and Lohr (2021), R Companion for \emph{Sampling: Design and Analysis, 3rd Edition}, 1st Edition. Boca Raton, FL: CRC Press. 
#' 
#'
"schools"

Try the SDAResources package in your browser

Any scripts or data that you put into this service are public.

SDAResources documentation built on Oct. 22, 2021, 5:08 p.m.