Learn R Programming

hcc (version 0.54)

beams: The strength of ten wood beams are effected by the specific gravity and moisture content

Description

The data was collected on the specific gravity, moisture content and strength of ten wood beams.

Usage

data(beams)

Arguments

Format

A data frame with 10 observations on the following 3 variables.
y
the strength of ten wood beams
x1
the specific gravity
x2
the moisture content

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

Draper, N.R. and Stoneman, D.M. (1966) Testing for the inclusion of variables in linear regression by a randomisation technique. Technometrics, 8, 695-699.

Examples

Run this code
data(beams)
mod <-lm(y ~ x1+x2, data=beams)
x <- beams[, 2]
res <- resid(mod)
hctest(x, res)

Run the code above in your browser using DataLab