R/BSDA-package.R
Nfldraft.Rd
Data for Exercises 9.10 and 9.16
Nfldraft
A data frame/tibble with 29 observations on three variables
rating of each player on a scale out of 10
forty yard dash time (in seconds)
weight of each player (in pounds)
USA Today, April 20, 1994.
Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.
plot(rating ~ forty, data = Nfldraft)
cor(Nfldraft$rating, Nfldraft$forty)
#> [1] -0.2684964
summary(lm(rating ~ forty, data = Nfldraft))
#>
#> Call:
#> lm(formula = rating ~ forty, data = Nfldraft)
#>
#> Residuals:
#> Min 1Q Median 3Q Max
#> -0.97407 -0.50864 -0.00184 0.35001 1.40602
#>
#> Coefficients:
#> Estimate Std. Error t value Pr(>|t|)
#> (Intercept) 13.744 5.291 2.598 0.015 *
#> forty -1.466 1.012 -1.448 0.159
#> ---
#> Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
#>
#> Residual standard error: 0.6449 on 27 degrees of freedom
#> Multiple R-squared: 0.07209, Adjusted R-squared: 0.03772
#> F-statistic: 2.098 on 1 and 27 DF, p-value: 0.159
#>