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 Jose.Pinheiro@pharma.novartis.com and Douglas Bates
     bates@stat.wisc.edu

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

