placekick | R Documentation |
Data on the results of placekicks in the NFL. This is a good data set for demonstrating logistic regression.
placekick
A data frame with 1425 observations and 9 variables:
week of the season
distance of the placekick in yards
does result of kick change who's leading? 0 = no, 1 = yes
number of minutes remaining before end of half; overtime placekicks receive a 0
point after attempt? 0 = no, 1 = yes
dome = 0, outdoor = 1
turf = 0, grass = 1
no wind = 0, windy = 1; windy is a wind stronger than 15 MPH
was kick successful? 0 = no, 1 = yes
http://www.chrisbilder.com/categorical/1stEdition/programs_and_data.html
Bilder CR and Loughin TM. (2015) Analysis of Categorical Data with R. CRC Press.
m <- glm(good ~ distance, data = placekick, family = binomial)
exp(confint(m))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.