Rev 7002 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{longley}\alias{longley}\title{Longley's Regression Data}\usage{data(longley)}\source{J. W. Longley (1967).An appraisal of least-squares programs from the point of view of theuser.\emph{Journal of the American Statistical Association} \bold{62},819--841.}\format{A data frame with 7 economical variables, observed yearly from 1947 to1962 (\eqn{n=16}).\tabular{ll}{GNP.deflator: \tab GNP implicit price deflator (\eqn{1954=100})\crGNP: \tab Gross National Producr.\crUnemployed: \tab number of unemployed \crArmed.Forces: \tab number of .. in the armed forces\crPopulation: \tab `noninstitutionalized' population \eqn{\ge} 14years of age.\crYear: \tab the year (time).\crEmployed: \tab number of people employed.}The regression \code{lm(Employed ~ .)} is known to be highlycollinear.}\examples{# give the data set in the form it is used in S-plus:data(longley)longley.x <- data.matrix(longley[, 1:6])longley.y <- longley[, "Employed"]pairs(longley, main = "longley data")summary(fm1 <- lm(Employed ~ ., data = longley))opar <- par(mfrow = c(2, 2), oma = c(0, 0, 1.1, 0),mar = c(4.1, 4.1, 2.1, 1.1))plot(fm1)par(opar)}\keyword{datasets}