compareFits               package:nlme               R Documentation

_C_o_m_p_a_r_e _F_i_t_t_e_d _O_b_j_e_c_t_s

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

     The columns in `object1' and `object2' are put together in
     matrices which allow direct comparison of the individual elements
     for each object. Missing columns in either object are replaced by
     `NA's.

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

     compareFits(object1, object2, which)

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

object1,object2: data frames, or matrices, with the same row names, but
          possibly different column names. These will usually
          correspond to coefficients from fitted objects with a
          grouping structure (e.g. `lme' and `lmList' objects).

   which: an optional integer or character vector indicating which
          columns in `object1' and `object2' are to be used in the
          returned object. Defaults to all columns.

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

     a three-dimensional array, with the third dimension given by the
     number of unique column names in either `object1' or `object2'. To
     each column name there corresponds a matrix with as many rows as
     the rows in `object1' and two columns, corresponding to `object1'
     and `object2'. The returned object inherits from class
     `compareFits'.

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

     Jose Pinheiro and Douglas Bates

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

     `plot.compareFits', `pairs.compareFits', `comparePred', `coef',
     `random.effects'

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

     data(Orthodont)
     fm1 <- lmList(Orthodont)
     fm2 <- lme(fm1)
     compareFits(coef(fm1), coef(fm2))

