traffic: New England traffic fatalities (1951-1959)

Description Format Source References Examples

Description

Used by Tufte as an example of the importance of context, these data show the traffic fatality rates in New England in the 1950s. Connecticut increased enforcement of speed limits in 1956. In their full context, it is difficult to say if the decline in Connecticut traffic fatalities from 1955 to 1956 can be attributed to the stricter enforcement.

Format

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

Source

Tufte, E. R. The Visual Display of Quantitative Information, 2nd ed. Graphics Press, 2001.

References

Donald T. Campbell and H. Laurence Ross. "The Connecticut Crackdown on Speeding: Time-Series Data in Quasi-Experimental Analysis", Law \& Society Review Vol. 3, No. 1 (Aug., 1968), pp. 33-54.

Gene V. Glass. "Analysis of Data on the Connecticut Speeding Crackdown as a Time-Series Quasi-Experiment" Law & Society Review, Vol. 3, No. 1 (Aug., 1968), pp. 55-76.

Examples

1
2
3
4
5
6
7
data(traffic)
xyplot(cn.deaths ~ year, data=traffic, type=c('l','g'))
trafficLong <- reshape(traffic,direction='long', idvar="year", 
				varying=list(3:6), v.names='deathRate',
				times=names(traffic)[3:6], timevar='state')
xyplot(deathRate~year, groups=state, data=trafficLong, type='b',
		auto.key=list(lines=TRUE, points=FALSE, columns=2))

fastR documentation built on May 1, 2019, 11:18 p.m.