longley                 package: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

_D_e_s_c_r_i_p_t_i_o_n:

     A macroeconomic data set which provides a well-known example for a
     highly collinear regression.

_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).

     _G_N_P._d_e_f_l_a_t_o_r: GNP implicit price deflator
            (1954=100)

     _G_N_P: Gross National Product.

     _U_n_e_m_p_l_o_y_e_d: number of unemployed.

     _A_r_m_e_d._F_o_r_c_e_s: number of people in the armed
            forces.

     _P_o_p_u_l_a_t_i_o_n: `noninstitutionalized' population
            >= 14 years of age.

     _Y_e_a_r: the year (time).

     _E_m_p_l_o_y_e_d: 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)

