asTable                 package:nlme                 R Documentation

_C_o_n_v_e_r_t _g_r_o_u_p_e_d_D_a_t_a _t_o _a _m_a_t_r_i_x

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

     Create a tabular representation of the response in a balanced
     groupedData object.

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

     asTable(object)

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

  object: A balanced 'groupedData' object

_D_e_t_a_i_l_s:

     A balanced groupedData object can be represented as a matrix or
     table of response values corresponding to the values of a primary
     covariate for each level of a grouping factor.  This function
     creates such a matrix representation of the data in 'object'.

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

     A matrix.  The data in the matrix are the values of the response. 
     The columns correspond to the distinct values of the primary
     covariate and are labelled as such.  The rows correspond to the
     distinct levels of the grouping factor and are labelled as such.

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

     Jose Pinheiro Jose.Pinheiro@pharma.novartis.com and Douglas Bates
     bates@stat.wisc.edu

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

     Pinheiro, J. C. and Bates, D. M. (2000), _Mixed-Effects Models in
     S and S-PLUS_, Springer, New York.

_S_e_e _A_l_s_o:

     'groupedData', 'isBalanced', 'balancedGrouped'

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

     asTable(Orthodont)

     # Pinheiro and Bates, p. 109
     ergoStool.mat <- asTable(ergoStool)

