as.matrix.corStruct           package:nlme           R Documentation

_M_a_t_r_i_x _o_f _a _c_o_r_S_t_r_u_c_t _O_b_j_e_c_t

_D_e_s_c_r_i_p_t_i_o_n:

     This method function extracts the correlation matrix, or list of
     correlation matrices, associated with 'object'.

_U_s_a_g_e:

     ## S3 method for class 'corStruct':
     as.matrix(x)

_A_r_g_u_m_e_n_t_s:

       x: an object inheriting from class 'corStruct', representing a
          correlation structure.

_V_a_l_u_e:

     If the correlation structure includes a grouping factor, the
     returned value will be a list with components given by the
     correlation matrices for each group. Otherwise, the returned value
     will be a matrix representing the correlation structure associated
     with 'object'.

_A_u_t_h_o_r(_s):

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

_S_e_e _A_l_s_o:

     'corClasses', 'corMatrix'

_E_x_a_m_p_l_e_s:

     data(Orthodont)
     cst1 <- corAR1(form = ~1|Subject)
     cst1 <- Initialize(cst1, data = Orthodont)
     as.matrix(cst1)

