longley               package:datasets               R Documentation

_L_o_n_g_l_e_y'_s _E_c_o_n_o_m_i_c _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:

     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.

_R_e_f_e_r_e_n_c_e_s:

     Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) _The New S
     Language_. Wadsworth & Brooks/Cole.

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

     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)

