Skip to contents

Air pollution measurements at three locations.

Format

A data frame with 6 observations on the following 2 variables.

pollution

a numeric vector

location

a factor with levels Hill Suburb, Plains Suburb, Urban City

Source

David J. Saville and Graham R. Wood, Statistical methods: A geometric primer, Springer, 1996.

Examples


data(AirPollution)
#> Warning: data set ‘AirPollution’ not found
summary(lm(pollution ~ location, data = AirPollution))
#> 
#> Call:
#> lm(formula = pollution ~ location, data = AirPollution)
#> 
#> Residuals:
#>  1  2  3  4  5  6 
#>  7 -7 -4  4 -6  6 
#> 
#> Coefficients:
#>                       Estimate Std. Error t value Pr(>|t|)    
#> (Intercept)            117.000      5.802  20.164 0.000267 ***
#> locationPlains Suburb   -6.000      8.206  -0.731 0.517592    
#> locationUrban City      15.000      8.206   1.828 0.164998    
#> ---
#> Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
#> 
#> Residual standard error: 8.206 on 3 degrees of freedom
#> Multiple R-squared:  0.6985,	Adjusted R-squared:  0.4975 
#> F-statistic: 3.475 on 2 and 3 DF,  p-value: 0.1655
#>