getGroupsFormula            package:nlme            R Documentation

_E_x_t_r_a_c_t _G_r_o_u_p_i_n_g _F_o_r_m_u_l_a

_D_e_s_c_r_i_p_t_i_o_n:

     The conditioning expression associated with 'formula(object)'
     (i.e. the expression after the '|' operator) is returned either as
     a named list of one-sided formulas, or a single one-sided formula,
     depending on the value of 'asList'. The components of the returned
     list are ordered from outermost to innermost level and are named
     after the grouping factor expression.

_U_s_a_g_e:

     getGroupsFormula(object, asList, sep)

_A_r_g_u_m_e_n_t_s:

  object: any object from which a formula can be extracted.

  asList: an optional logical value. If 'TRUE' the returned value with
          be a list of formulas; else, if 'FALSE' the returned value
          will be a one-sided formula. Defaults to 'FALSE'.

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

_V_a_l_u_e:

     a one-sided formula, or a list of one-sided formulas, with the
     grouping structure associated with 'formula(object)'. If no
     conditioning expression is present in 'formula(object)' a 'NULL'
     value is returned.

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

     'getGroupsFormula.gls', 'getGroupsFormula.lmList',
     'getGroupsFormula.lme', 'getGroupsFormula.reStruct', 'getGroups'

_E_x_a_m_p_l_e_s:

     getGroupsFormula(y ~ x | g1/g2)

