Demand               package:SASmixed               R Documentation

_P_e_r-_c_a_p_i_t_a _d_e_m_a_n_d _d_e_p_o_s_i_t_s _b_y _s_t_a_t_e _a_n_d _y_e_a_r

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

     The 'Demand' data frame has 77 rows and 8 columns of data on
     per-capita demand deposits by state and year.

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

     This data frame contains the following columns:

     _S_t_a_t_e an ordered factor with levels 'WA' < 'FL' < 'CA' < 'TX' <
          'IL' < 'DC' < 'NY'

     _Y_e_a_r an ordered factor with levels '1949' < ...{} < '1959'

     _d a numeric vector of per-capita demand deposits

     _y a numeric vector of permanent per-capita personal income

     _r_d a numeric vector of service charges on demand deposits

     _r_t a numeric vector of interest rates on time deposits

     _r_s a numeric vector of interest rates on savings and loan
          association shares.

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

     Littel, R. C., Milliken, G. A., Stroup, W. W., and Wolfinger, R.
     D. (1996), _SAS System for Mixed Models_, SAS Institute (Data Set
     1.2.4).

     Feige, E. L. (1964), _The Demand for Liquid Assets: A Temporal
     Cross-Sectional Analysis._, Prentice Hall.

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

     str(Demand)
     if (require("lme4", quietly = TRUE, character = TRUE)) {
       ## compare to output 3.13, p. 132
       summary(fm1Demand <-
           lmer(log(d) ~ log(y) + log(rd) + log(rt) + log(rs) + (1|State) + (1|Year),
              Demand))
     }

