Description Usage Format Source References Examples
Data gathered in the course of studying the relationship between accident rates on US highways and various characteristics of the highway
1 |
A data frame with 39 observations on the following 15 variables:
obsobservation number
rateThe accident rate per million vehicle miles (response)
lenThe length of the segment of highway in miles
adtAverage daily traffic count ('000)
trksThe percentage of the traffic that are trucks
slimthe speed limit in mph
lwdthe lane width in feet
shldthe shoulder width in feet
itgnumber of freeway interchanges per mile
sigsnumber of entrances controlled by lights per mile
acptnumber of access points per mile
lanenumber of lanes in each direction
faidummy variable, equal to 1 if an interstate highway, zero otherwise
paequal to 1 if a principal highway, 0 otherwise
maequal to 1 if a major highway, 0 otherwise
Carl Hoffstedt. This differs from the dataset highway in the alr3 package only by transformation of some of the columns.
Fox, J. and Weisberg, S. (2011) An R Companion to Applied Regression, Second Edition, Sage.
Weisberg, S. (2005) Applied Linear Regression, Third Edition. Wiley, Section 7.2.
1 2 3 | data(traffic.df)
traffic.lm<-lm(rate~.,data=traffic.df)
summary(traffic.lm)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.