Description Usage Format Source References Examples
Flights categorized by destination city, airline, and whether or not the flight was on time.
1 |
A data frame with 11000 observations on the following 3 variables.
Airporta factor with levels LosAngeles Phoenix SanDiego SanFrancisco Seattle
Resulta factor with levels Delayed OnTime
Airlinea factor with levels Alaska AmericaWest
Barnett, Arnold. 1994. “How numbers can trick you.” Technology Review, vol. 97, no. 7, pp. 38–45.
These and similar data appear in many text books under the topic of Simpson's paradox.
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)))
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.