R/BSDA-package.R
Victoria.Rd
Data for Exercise 2.98
Victoria
A data frame/tibble with 20 observations on three variables
year
mean annual level of Lake Victoria Nyanza
number of sunspots
N. Shaw, Manual of Meteorology, Vol. 1 (London: Cambridge University Press, 1942), p. 284; and F. Mosteller and J. W. Tukey, Data Analysis and Regression (Reading, MA: Addison-Wesley, 1977).
Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.
plot(level ~ sunspot, data = Victoria)
model <- lm(level ~ sunspot, data = Victoria)
summary(model)
#>
#> Call:
#> lm(formula = level ~ sunspot, data = Victoria)
#>
#> Residuals:
#> Min 1Q Median 3Q Max
#> -10.3781 -4.1691 -0.9618 2.2971 14.7500
#>
#> Coefficients:
#> Estimate Std. Error t value Pr(>|t|)
#> (Intercept) -8.04176 2.55561 -3.147 0.00558 **
#> sunspot 0.41281 0.05275 7.826 3.35e-07 ***
#> ---
#> Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
#>
#> Residual standard error: 6.466 on 18 degrees of freedom
#> Multiple R-squared: 0.7729, Adjusted R-squared: 0.7602
#> F-statistic: 61.24 on 1 and 18 DF, p-value: 3.348e-07
#>
rm(model)