Airline On-Time Arrival Data

Share:

Description

Flights categorized by destination city, airline, and whether or not the flight was on time.

Usage

1

Format

A data frame with 11000 observations on the following 3 variables.

Airport

a factor with levels LosAngeles Phoenix SanDiego SanFrancisco Seattle

Result

a factor with levels Delayed OnTime

Airline

a factor with levels Alaska AmericaWest

Source

Barnett, Arnold. 1994. “How numbers can trick you.” Technology Review, vol. 97, no. 7, pp. 38–45.

References

These and similar data appear in many text books under the topic of Simpson's paradox.

Examples

1
2
3
4
5
6
row.perc(xtabs(~Airline+Result, airlineArrival))
for (city in levels(airlineArrival$Airport)) {
	cat(paste('\nArriving in ', city,':\n',sep=''))
	print(row.perc(xtabs(~Airline+Result, airlineArrival, 
		subset=Airport==city)))
}

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.