Learn R Programming

ACSWR (version 1.0)

flight: Injuries in Airflights

Description

Injuries in airflights, road accidents, etc, are instances of rare occurrences which are appropriately modeled by a Poisson distribution. Two models, before and after transformation, are fit and it is checked if the transformation led to a reduction to the variance.

Usage

data(flight)

Arguments

Format

A data frame with 9 observations on the following 2 variables.
Injury_Incidents
Count of injury incidents
Total_Flights
Total number of flights

References

Chatterjee, S., and Hadi, A. S. (1977-2006). Regression Analysis by Examples, 4e. J. Wiley.

Examples

Run this code
data(flight)
names(flight)
injurylm <- lm(Injury_Incidents~Total_Flights,data=flight)
injurysqrtlm <- lm(sqrt(Injury_Incidents)~Total_Flights,data=flight)
summary(injurylm)
summary(injurysqrtlm)

Run the code above in your browser using DataLab