EVOLUTION-MANAGER
Edit File: longley.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Longley's Economic Regression Data</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for longley {datasets}"><tr><td>longley {datasets}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Longley's Economic Regression Data</h2> <h3>Description</h3> <p>A macroeconomic data set which provides a well-known example for a highly collinear regression. </p> <h3>Usage</h3> <pre>longley</pre> <h3>Format</h3> <p>A data frame with 7 economical variables, observed yearly from 1947 to 1962 (<i>n=16</i>). </p> <dl> <dt><code>GNP.deflator</code></dt><dd><p>GNP implicit price deflator (<i>1954=100</i>)</p> </dd> <dt><code>GNP</code></dt><dd><p>Gross National Product.</p> </dd> <dt><code>Unemployed</code></dt><dd><p>number of unemployed.</p> </dd> <dt><code>Armed.Forces</code></dt><dd><p>number of people in the armed forces.</p> </dd> <dt><code>Population</code></dt><dd><p>‘noninstitutionalized’ population <i>≥</i> 14 years of age.</p> </dd> <dt><code>Year</code></dt><dd><p>the year (time).</p> </dd> <dt><code>Employed</code></dt><dd><p>number of people employed.</p> </dd> </dl> <p>The regression <code>lm(Employed ~ .)</code> is known to be highly collinear. </p> <h3>Source</h3> <p>J. W. Longley (1967) An appraisal of least-squares programs from the point of view of the user. <em>Journal of the American Statistical Association</em> <b>62</b>, 819–841. </p> <h3>References</h3> <p>Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) <em>The New S Language</em>. Wadsworth & Brooks/Cole. </p> <h3>Examples</h3> <pre> require(stats); require(graphics) ## give the data set in the form it is used in S-PLUS: 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) </pre> <hr /><div style="text-align: center;">[Package <em>datasets</em> version 3.6.0 <a href="00Index.html">Index</a>]</div> </body></html>