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

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

 formula: A model formula.

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

     `wr' returns a list containing the response vector (z$response)
     and the design matrix (z$design) for the formula supplied. e

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

