usair: US air pollution data set

Description Usage Format Source References Examples

Description

US air pollution data set taken from Hand et al. (1994) data set 26, USAIR.DAT, originally from Sokal and Rohlf (1981).

Usage

1

Format

A data frame with 41 observations on the following 7 variables.

y

a numeric vector: sulpher dioxide concentration in air mgs. per cubic metre in 41 cities in the USA

x1

a numeric vector: average annual temperature in degrees F

x2

a numeric vector: number of manufacturers employing >20 workers

x3

a numeric vector: population size in thousands

x4

a numeric vector: average annual wind speed in miles per hour

x5

a numeric vector: average annual rainfall in inches

x6

a numeric vector: average number of days rainfall per year

Source

Hand et al. (1994) data set 26, USAIR.DAT, originally from Sokal and Rohlf (1981)

References

Hand, D. J., Daly, F., Lunn, A. D., McConway, K. J. and Ostrowski, E. (1994), A handbook of small data sets, Chapman and Hall, London.

Examples

1
2
3
4
5
6
7
8
data(usair)
str(usair) 
plot(usair)
# a possible gamlss model
# gamlss(library)
#ap<-gamlss(y~cs(x1,2)+x2+x3+cs(x4,2)+x5+cs(x6,3)+x4:x5, 
#               data=usair, family=GA(mu.link="inverse"))
# 

Example output

'data.frame':	41 obs. of  7 variables:
 $ y : int  10 13 12 17 56 36 29 14 10 24 ...
 $ x1: num  70.3 61 56.7 51.9 49.1 54 57.3 68.4 75.5 61.5 ...
 $ x2: int  213 91 453 454 412 80 434 136 207 368 ...
 $ x3: int  582 132 716 515 158 80 757 529 335 497 ...
 $ x4: num  6 8.2 8.7 9 9 9 9.3 8.8 9 9.1 ...
 $ x5: num  7.05 48.52 20.66 12.95 43.37 ...
 $ x6: int  36 100 67 86 127 114 111 116 128 115 ...

gamlss.data documentation built on May 2, 2019, 6:27 p.m.