Usage
groupedData(formula, data, order.groups, FUN, outer, inner,
labels, units)
## S3 method for class 'groupedData':
update(object, formula, data, order.groups, FUN,
outer, inner, labels, units, \dots)
Arguments
object
an object inheriting from class groupedData
.
formula
a formula of the form resp ~ cov | group
where
resp
is the response, cov
is the primary covariate, and
group
is the grouping factor. The expression 1
can be
used for the primary co
data
a data frame in which the expressions in formula
can
be evaluated. The resulting groupedData
object will consist
of the same data values in the same order but with additional
attributes.
order.groups
an optional logical value, or list of logical
values, indicating if the grouping factors should be converted to
ordered factors according to the function FUN
applied to the
response from each group. If multiple levels of grouping are
FUN
an optional summary function that will be applied to the
values of the response for each level of the grouping factor, when
order.groups = TRUE
, to determine the ordering. Defaults to
the max
function.
outer
an optional one-sided formula, or list of one-sided
formulas, indicating covariates that are outer to the grouping
factor(s). If multiple levels of grouping are present,
this argument can be either a single one-sided formula, or a list of
one
inner
an optional one-sided formula, or list of one-sided
formulas, indicating covariates that are inner to the grouping
factor(s). If multiple levels of grouping are present,
this argument can be either a single one-sided formula, or a list of
one-
labels
an optional list of character strings giving labels for
the response and the primary covariate. The label for the primary
covariate is named x
and that for the response is named
y
. Either label can be omitted.
units
an optional list of character strings giving the units for
the response and the primary covariate. The units string for the
primary covariate is named x
and that for the response is
named y
. Either units string can be
...
some methods for this generic require additional
arguments. None are used in this method.