STAR | R Documentation |
The Project STAR public access data set, assessing the effect of reducing class size on test scores in the early grades.
data("STAR")
A data frame containing 11,598 observations on 47 variables.
factor indicating student's gender.
factor indicating student's ethnicity with levels
"cauc"
(Caucasian), "afam"
(African-American), "asian"
(Asian),
"hispanic"
(Hispanic), "amindian"
(American-Indian) or "other"
.
student's birth quarter (of class yearqtr
).
factor indicating the STAR class type in kindergarten:
regular, small, or regular-with-aide. NA
indicates that no STAR class was attended.
factor indicating the STAR class type in 1st grade:
regular, small, or regular-with-aide. NA
indicates that no STAR class was attended.
factor indicating the STAR class type in 2nd grade:
regular, small, or regular-with-aide. NA
indicates that no STAR class was attended.
factor indicating the STAR class type in 3rd grade:
regular, small, or regular-with-aide. NA
indicates that no STAR class was attended.
total reading scaled score in kindergarten.
total reading scaled score in 1st grade.
total reading scaled score in 2nd grade.
total reading scaled score in 3rd grade.
total math scaled score in kindergarten.
total math scaled score in 1st grade.
total math scaled score in 2nd grade.
total math scaled score in 3rd grade.
factor indicating whether the student qualified for free lunch in kindergarten.
factor indicating whether the student qualified for free lunch in 1st grade.
factor indicating whether the student qualified for free lunch in 2nd grade.
factor indicating whether the student qualified for free lunch in 3rd grade.
factor indicating school type in kindergarten:
"inner-city"
, "suburban"
, "rural"
or "urban"
.
factor indicating school type in 1st grade:
"inner-city"
, "suburban"
, "rural"
or "urban"
.
factor indicating school type in 2nd grade:
"inner-city"
, "suburban"
, "rural"
or "urban"
.
factor indicating school type in 3rd grade:
"inner-city"
, "suburban"
, "rural"
or "urban"
.
factor indicating highest degree of kindergarten teacher:
"bachelor"
, "master"
, "specialist"
, or "master+"
.
factor indicating highest degree of 1st grade teacher:
"bachelor"
, "master"
, "specialist"
, or "phd"
.
factor indicating highest degree of 2nd grade teacher:
"bachelor"
, "master"
, "specialist"
, or "phd"
.
factor indicating highest degree of 3rd grade teacher:
"bachelor"
, "master"
, "specialist"
, or "phd"
.
factor indicating teacher's career ladder level in kindergarten: "level1"
,
"level2"
, "level3"
, "apprentice"
, "probation"
or "pending"
.
factor indicating teacher's career ladder level in 1st grade: "level1"
,
"level2"
, "level3"
, "apprentice"
, "probation"
or "noladder"
.
factor indicating teacher's career ladder level in 2nd grade: "level1"
,
"level2"
, "level3"
, "apprentice"
, "probation"
or "noladder"
.
factor indicating teacher's career ladder level in 3rd grade: "level1"
,
"level2"
, "level3"
, "apprentice"
, "probation"
or "noladder"
.
years of teacher's total teaching experience in kindergarten.
years of teacher's total teaching experience in 1st grade.
years of teacher's total teaching experience in 2nd grade.
years of teacher's total teaching experience in 3rd grade.
factor indicating teacher's ethnicity in kindergarten with levels
"cauc"
(Caucasian) or "afam"
(African-American).
factor indicating teacher's ethnicity in 1st grade with levels
"cauc"
(Caucasian) or "afam"
(African-American).
factor indicating teacher's ethnicity in 2nd grade with levels
"cauc"
(Caucasian) or "afam"
(African-American).
factor indicating teacher's ethnicity in 3rd grade with levels
"cauc"
(Caucasian), "afam"
(African-American), or "asian"
(Asian).
factor indicating school system ID in kindergarten.
factor indicating school system ID in 1st grade.
factor indicating school system ID in 2nd grade.
factor indicating school system ID in 3rd grade.
factor indicating school ID in kindergarten.
factor indicating school ID in 1st grade.
factor indicating school ID in 2nd grade.
factor indicating school ID in 3rd grade.
Project STAR (Student/Teacher Achievement Ratio) was a four-year longitudinal class-size study funded by the Tennessee General Assembly and conducted in the late 1980s by the State Department of Education. Over 7,000 students in 79 schools were randomly assigned into one of three interventions: small class (13 to 17 students per teacher), regular class (22 to 25 students per teacher), and regular-with-aide class (22 to 25 students with a full-time teacher's aide). Classroom teachers were also randomly assigned to the classes they would teach. The interventions were initiated as the students entered school in kindergarten and continued through third grade.
The Project STAR public access data set contains data on test scores, treatment groups, and student and teacher characteristics for the four years of the experiment, from academic year 1985–1986 to academic year 1988–1989. The test score data analyzed in this chapter are the sum of the scores on the math and reading portion of the Stanford Achievement Test.
Stock and Watson (2007) obtained the data set from the Project STAR Web site.
The data is provided in wide format. Reshaping it into long format
is illustrated below. Note that the levels of the degree
, ladder
and tethnicity
variables differ slightly between kindergarten
and higher grades.
Online complements to Stock and Watson (2007).
Stock, J.H. and Watson, M.W. (2007). Introduction to Econometrics, 2nd ed. Boston: Addison Wesley.
StockWatson2007
data("STAR")
## Stock and Watson, p. 488
fmk <- lm(I(readk + mathk) ~ stark, data = STAR)
fm1 <- lm(I(read1 + math1) ~ star1, data = STAR)
fm2 <- lm(I(read2 + math2) ~ star2, data = STAR)
fm3 <- lm(I(read3 + math3) ~ star3, data = STAR)
coeftest(fm3, vcov = sandwich)
plot(I(read3 + math3) ~ star3, data = STAR)
## Stock and Watson, p. 489
fmke <- lm(I(readk + mathk) ~ stark + experiencek, data = STAR)
coeftest(fmke, vcov = sandwich)
## reshape data from wide into long format
## 1. variables and their levels
nam <- c("star", "read", "math", "lunch", "school", "degree", "ladder",
"experience", "tethnicity", "system", "schoolid")
lev <- c("k", "1", "2", "3")
## 2. reshaping
star <- reshape(STAR, idvar = "id", ids = row.names(STAR),
times = lev, timevar = "grade", direction = "long",
varying = lapply(nam, function(x) paste(x, lev, sep = "")))
## 3. improve variable names and type
names(star)[5:15] <- nam
star$id <- factor(star$id)
star$grade <- factor(star$grade, levels = lev, labels = c("kindergarten", "1st", "2nd", "3rd"))
rm(nam, lev)
## fit a single model nested in grade (equivalent to fmk, fm1, fm2, fmk)
fm <- lm(I(read + math) ~ 0 + grade/star, data = star)
coeftest(fm, vcov = sandwich)
## visualization
library("lattice")
bwplot(I(read + math) ~ star | grade, data = star)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.