R/BSDA-package.R
Verbal.Rd
Data for Exercise 9.30
Verbal
A data frame/tibble with 15 observations on two variables
number of library books checked out
verbal test score
Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.
plot(verbal ~ number, data = Verbal)
abline(lm(verbal ~ number, data = Verbal), col = "red")
summary(lm(verbal ~ number, data = Verbal))
#>
#> Call:
#> lm(formula = verbal ~ number, data = Verbal)
#>
#> Residuals:
#> Min 1Q Median 3Q Max
#> -16.261 -3.886 3.059 4.751 7.974
#>
#> Coefficients:
#> Estimate Std. Error t value Pr(>|t|)
#> (Intercept) 45.3464 4.0217 11.276 4.39e-08 ***
#> number 2.3828 0.2751 8.662 9.27e-07 ***
#> ---
#> Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
#>
#> Residual standard error: 6.695 on 13 degrees of freedom
#> Multiple R-squared: 0.8523, Adjusted R-squared: 0.841
#> F-statistic: 75.03 on 1 and 13 DF, p-value: 9.265e-07
#>