lmList.groupedData           package:nlme           R Documentation

_l_m_L_i_s_t _F_i_t _f_r_o_m _a _g_r_o_u_p_e_d_D_a_t_a _O_b_j_e_c_t

_D_e_s_c_r_i_p_t_i_o_n:

     The response variable and primary covariate in 'formula(object)'
     are used to construct the linear model formula. This formula and
     the 'groupedData' object are passed as the 'object' and 'data'
     arguments to 'lmList.formula', together with any other additional
     arguments in the function call. See the documentation on
     'lmList.formula' for a description of that function.

_U_s_a_g_e:

     ## S3 method for class 'groupedData':
     lmList(object, data, level, subset, na.action, pool)

_A_r_g_u_m_e_n_t_s:

  object: a data frame inheriting from class 'groupedData'.

    data: this argument is included for consistency with the generic
          function. It is ignored in this method function.

   level: an optional integer specifying the level of grouping to be
          used when  multiple nested levels of grouping are present. 

  subset: an optional expression indicating which subset of the rows of
          'data' should  be  used in the fit. This can be a logical
          vector, or a numeric vector indicating which observation
          numbers are to be included, or a  character  vector of the
          row names to be included.  All observations are included by
          default.

na.action: a function that indicates what should happen when the data
          contain 'NA's.  The default action ('na.fail') causes
          'lmList' to print an error message and terminate if there are
          any incomplete observations. 

    pool: an optional logical value that is preserved as an attribute
          of the returned value.  This will be used as the default for
          'pool' in calculations of standard deviations or standard
          errors for summaries. 

_V_a_l_u_e:

     a list of 'lm' objects with as many components as the number of
     groups defined by the grouping factor. Generic functions such as
     'coef', 'fixed.effects', 'lme', 'pairs', 'plot', 'predict',
     'random.effects', 'summary', and 'update' have methods that can be
     applied to an 'lmList' object.

_S_e_e _A_l_s_o:

     'groupedData', 'lm', 'lme.lmList', 'lmList', 'lmList.formula'

_E_x_a_m_p_l_e_s:

     fm1 <- lmList(Orthodont)
     summary(fm1)

