lmList package:nlme R Documentation _L_i_s_t _o_f _l_m _O_b_j_e_c_t_s _w_i_t_h _a _C_o_m_m_o_n _M_o_d_e_l _D_e_s_c_r_i_p_t_i_o_n: 'Data' is partitioned according to the levels of the grouping factor 'g' and individual 'lm' fits are obtained for each 'data' partition, using the model defined in 'object'. _U_s_a_g_e: lmList(object, data, level, subset, na.action, pool) ## S3 method for class 'lmList': update(object, formula., ..., evaluate = TRUE) ## S3 method for class 'lmList': print(x, pool, ...) _A_r_g_u_m_e_n_t_s: object: For 'lmList', either a linear formula object of the form 'y ~ x1+...+xn | g' or a 'groupedData' object. In the formula object, 'y' represents the response, 'x1,...,xn' the covariates, and 'g' the grouping factor specifying the partitioning of the data according to which different 'lm' fits should be performed. The grouping factor 'g' may be omitted from the formula, in which case the grouping structure will be obtained from 'data', which must inherit from class 'groupedData'. The method function 'lmList.groupedData' is documented separately. For the method 'update.lmList', 'object' is an object inheriting from class 'lmList'. formula: (used in 'update.lmList' only) a two-sided linear formula with the common model for the individuals 'lm' fits. formula.: Changes to the formula - see 'update.formula' for details. data: a data frame in which to interpret the variables named in 'object'. 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 indicating whether a pooled estimate of the residual standard error should be used in calculations of standard deviations or standard errors for summaries. x: an object inheriting from class 'lmList' to be printed. ...: some methods for this generic require additional arguments. None are used in this method. evaluate: If 'TRUE' evaluate the new call else return the call. _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. _R_e_f_e_r_e_n_c_e_s: Pinheiro, J.C., and Bates, D.M. (2000) "Mixed-Effects Models in S and S-PLUS", Springer. _S_e_e _A_l_s_o: 'lm', 'lme.lmList', 'plot.lmList', 'pooledSD', 'predict.lmList', 'residuals.lmList', 'summary.lmList' _E_x_a_m_p_l_e_s: fm1 <- lmList(distance ~ age | Subject, Orthodont) summary(fm1)