Description Usage Format Details References Examples

This data set is from Angrist and Lavy (1999). There are 86 pairs of two Israeli schools, one with slightly more than 40 students in the fifth grade, the other with 40 or fewer in the fifth grade, together with test scores in reading and math. This example is discussed in Chapters 1, 5 and 18 of "Design of Observational Studies".

1 | ```
data("angristlavy")
``` |

A data frame with 172 observations on the following 9 variables.

`scode`

School ID

`numclass`

Number of classes in the fifth grade, 1 or 2.

`cohsize`

Total number of students in the fifth grade, near 40 for these schools.

`avgmath`

Average grade in math in the fifth grade.

`avgverb`

Average verbal grade in the fifth grade.

`tipuach`

Percent of disadvantaged students. Used to form matched pairs.

`clasz`

Average class size in the fifth grade, equal to cohsize/numclass

`z`

1 if cohsize<=40, 0 if cohsize>40.

`pair`

pair ID, 1, 2, ..., 86

This example is discussed in Chapters 1, 5, and 18 of the second edition of "Design of Observational Studies".

As discussed by Angrist and Lavy (1999), Maimonidies rule requires that a class of more than 40 be divided to form two or more classes of at most 40, so there is a large discontinuity in class size at 40: at 40 students in the 5th grade, there is one class of 40, but at 41 students, there are two classes of average size 20.5. So the enrolement of one student should cut the class size roughly in half. Adherence to Maimonidies rule is good but not perfect. Pairs of schools were matched for the percent of disadvantaged students (tipuach).

Angrist, J. D. and Lavy, V. (1999) <doi:10.1162/003355399556061> "Using Maimonides' rule to estimate the effect of class size on scholastic achievement". The Quarterly Journal of Economics, 114, 533-575.

Angrist, J. D. and Krueger, A. B. (1999) <doi:10.1016/S1573-4463(99)03004-7> "Empirical strategies in labor economics". In Handbook of Labor Economics (Vol. 3, pp. 1277-1366). Elsevier.

1 2 3 4 5 6 7 8 9 10 11 | ```
# Figure 1.1 in Chapter 1 of "Design of Observational Studies", 2nd edition
data(angristlavy)
attach(angristlavy)
grp<-factor(z,levels=c(1,0),labels=c("31-40","41-50"),ordered=TRUE)
oldpar<-par(mfrow=c(2,2))
boxplot(tipuach~grp,main="Disadvantaged",ylab="Percent")
boxplot(clasz~grp,main="Class Size",ylab="Students")
boxplot(avgmath~grp,main="Math",ylab="Average Score")
boxplot(avgverb~grp,main="Verbal",ylab="Average Score")
detach(angristlavy)
par(oldpar)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.