getGroups.lmList.Rd
The grouping factor determining the partitioning of the observations
used to produce the lm
components of object
is
extracted.
# S3 method for class 'lmList'
getGroups(object, form, level, data, sep)
an object inheriting from class lmList
, representing
a list of lm
objects with a common model.
an optional formula with a conditioning expression on its
right hand side (i.e. an expression involving the |
operator). Defaults to formula(object)
. Not used.
a positive integer vector with the level(s) of grouping to be used when multiple nested levels of grouping are present. This argument is optional for most methods of this generic function and defaults to all levels of nesting. Not used.
a data frame in which to interpret the variables named in
form
. Optional for most methods. Not used.
character, the separator to use between group levels when
multiple levels are collapsed. The default is '/'
. Not used.
a vector with the grouping factor corresponding to the lm
components of object
.
fm1 <- lmList(distance ~ age | Subject, Orthodont)
getGroups(fm1)
#> [1] M01 M01 M01 M01 M02 M02 M02 M02 M03 M03 M03 M03 M04 M04 M04 M04 M05 M05
#> [19] M05 M05 M06 M06 M06 M06 M07 M07 M07 M07 M08 M08 M08 M08 M09 M09 M09 M09
#> [37] M10 M10 M10 M10 M11 M11 M11 M11 M12 M12 M12 M12 M13 M13 M13 M13 M14 M14
#> [55] M14 M14 M15 M15 M15 M15 M16 M16 M16 M16 F01 F01 F01 F01 F02 F02 F02 F02
#> [73] F03 F03 F03 F03 F04 F04 F04 F04 F05 F05 F05 F05 F06 F06 F06 F06 F07 F07
#> [91] F07 F07 F08 F08 F08 F08 F09 F09 F09 F09 F10 F10 F10 F10 F11 F11 F11 F11
#> 27 Levels: M16 < M05 < M02 < M11 < M07 < M08 < M03 < M12 < M13 < ... < F11