wr                  package:rmutil                  R Documentation

_F_i_n_d _t_h_e _R_e_s_p_o_n_s_e _V_e_c_t_o_r _a_n_d _D_e_s_i_g_n _M_a_t_r_i_x _f_o_r _a _W&_R _M_o_d_e_l _F_o_r_m_u_l_a

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

     'wr' gives the response vector and design matrix for a formula in
     Wilkinson and Rogers notation.

_U_s_a_g_e:

     wr(formula, data=NULL, expand=T)

_A_r_g_u_m_e_n_t_s:

 formula: A model formula.

    data: A data object or environment.

  expand: If FALSE, the covariates are read from the 'tccov' object
          without expanding to the length of the response variable.

_V_a_l_u_e:

     'wr' returns a list containing the response vector ('z$response'),
     if included in the formula, and the design matrix ('z$design')
     from the data object or environment supplied or from the global
     environment for the formula supplied.

_A_u_t_h_o_r(_s):

     J.K. Lindsey

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

     y <- rnorm(20)
     x <- gl(4,5)
     z <- rpois(20,2)
     wr(y~x+z)

