getGroups.lme              package:nlme              R Documentation

_E_x_t_r_a_c_t _l_m_e _O_b_j_e_c_t _G_r_o_u_p_s

_D_e_s_c_r_i_p_t_i_o_n:

     The grouping factors corresponding to the linear mixed-effects
     model represented by 'object' are extracted. If more than one
     level is indicated in 'level', the corresponding grouping factors
     are combined  into a data frame; else the selected grouping factor
     is returned as a vector.

_U_s_a_g_e:

     ## S3 method for class 'lme':
     getGroups(object, form, level, data, sep)

_A_r_g_u_m_e_n_t_s:

  object: an object inheriting from class 'lme', representing a fitted
          linear mixed-effects model.

    form: this argument is included to make the method function
          compatible with the generic and is ignored in this method.

   level: an optional integer vector giving the level(s) of grouping to
          be extracted from 'object'. Defaults to the highest or
          innermost level of grouping.

    data: unused

     sep: character, the separator to use between group levels when
          multiple levels are collapsed.  The default is ''/''.

_V_a_l_u_e:

     either a data frame with columns given by the grouping factors
     indicated in 'level', or, when a single level is requested, a
     factor representing the selected grouping factor.

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

     'lme'

_E_x_a_m_p_l_e_s:

     fm1 <- lme(pixel ~ day + day^2, Pixel,
       random = list(Dog = ~day, Side = ~1))
     getGroups(fm1, level = 1:2)

