Learn R Programming

hcc (version 0.54)

ustemp: U.S. winter temperatures for various latitudes and longitudes

Description

The data collect from 56 U.S. cities winter temperatures for various latitudes and longitudes from 1931 to 1960.

Usage

data(ustemp)

Arguments

Format

A data frame with 56 observations on the following 3 variables.
y
winter temperature (deg F)
x1
latitude
x2
longitude

Source

Hand, D.J., Daly, F., Lunn, A.D., McConway, K.J. and Ostrowski, E. (1993). A Handbook of Small Datasets. Chapman and Hall.

References

J. L. Peixoto. A property of well-formulated polynomial regression models. The American Statistician, 44:26, 1990.

Examples

Run this code
data(ustemp)
lmod<-lm(y~x1+x2, data=ustemp)
x1<-ustemp[,"x1"]
x2<-ustemp[,"x2"]
res<-resid(lmod)
hctest(x1, res)

Run the code above in your browser using DataLab