

longley {base}                               R Documentation

_L_o_n_g_l_e_y_'_s _R_e_g_r_e_s_s_i_o_n _D_a_t_a

_U_s_a_g_e_:

     data(longley)

_F_o_r_m_a_t_:

     A data frame with 7 economical variables, observed
     yearly from 1947 to 1962 (n=16).

       GNP.deflator:     GNP implicit price deflator (1954=100)
       GNP:              Gross National Producr.
       Unemployed:       number of unemployed
       Armed.Forces:     number of .. in the armed forces
       Population:       `noninstitutionalized' population
                         >= 14 years of age.
       Year:             the year (time).
       Employed:         number of people employed.

     The regression `lm(Employed ~ .)' is known to be highly
     collinear.

_S_o_u_r_c_e_:

     J. W. Longley (1967).  An appraisal of least-squares
     programs from the point of view of the user.  Journal
     of the American Statistical Association 62, 819-841.

_E_x_a_m_p_l_e_s_:

     # 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)

