R Dataset / Package mediation / school


On this R-data statistics page, you will find information about the school data set which pertains to School-level data. The school data set is found in the mediation R package. You can load the school data set in R by issuing the following command at the console data("school"). This will load the data into a variable called school. If R says the school data set is not found, you can try installing the package by issuing this command install.packages("mediation") and then attempt to reload the data. If you need to download R, you can go to the R project website. You can download a CSV (comma separated values) version of the school R data set. The size of this file is about 6,752 bytes.

School-level data


The original data source is the Education Longitudinal Study of 2002. To deal with the issue on individually identifiable information, we generated hypothetical student-level data using a multiple imputation method. The Education Longitudinal Study of 2002 used a two-stage sample selection process. First, a national sample of schools was selected using stratified probability proportional to size (PPS), and school contacting resulted in 1,221 eligible public, Catholic, and other private schools from a population of approximately 27,000 schools containing 10th grade students. Of the eligible schools, 752 participated in the study. In the second stage of sample selection, a sample of approximately 26 sophomores, from within each of the participating public and private schools was selected. Each school was asked to provide a list of 10th grade students, and quality assurance (QA) checks were performed on each list that was received.




A data matrix with 568 rows and 5 columns, containing no missing values. The data are provided only for illustrative purposes and not for inference about education effectiveness, for which the original data source should be consulted.


School indicator.


Indicator variable for coeducation. 1 = coeducation.


Measure of student morale in the school. 4 levels.


Percent of 10th grade students receiving free lunch. 1 to 7 levels.


Indicator variable for catholic school. 1 = catholic school.


The complete student-level data is available from the data archives at www.icpsr.umich.edu/


United States Department of Education. National Center for Education Statistics


Dataset imported from https://www.r-project.org.

Title Authored on Content type
OpenIntro Statistics Dataset - dream August 9, 2020 - 12:25 PM Dataset
OpenIntro Statistics Dataset - winery_cars August 9, 2020 - 2:38 PM Dataset
R Dataset / Package HSAUR / toothpaste March 9, 2018 - 1:06 PM Dataset
R Dataset / Package HSAUR / pottery March 9, 2018 - 1:06 PM Dataset
R Dataset / Package HistData / Guerry March 9, 2018 - 1:06 PM Dataset
<iframe src="https://r-data.pmagunia.com/iframe/r-dataset-package-mediation-school.html" frameBorder="0" width="100%" height="307px" />
Attachment Size
dataset-51296.csv 6.59 KB
Dataset License
GNU General Public License v2.0
Documentation License
GNU General Public License v2.0

This documentation is licensed under GPLv3 or later.