byMRO {iNZightMR} | R Documentation |
Calculate MRO inference for subsets
Description
Constructs a multiple response object (MRO) subset by another explanatory variable.
Usage
byMRO(mro.obj, formula, FUN, ...)
Arguments
mro.obj |
an mro object (created by |
formula |
variable for subsetting, as a formula (e.g., |
FUN |
the function to apply to subsets |
... |
additional arguments passed to |
Value
an object with classes of by
and bymrocalc
See Also
Examples
mr <- iNZightMR(online ~ onlinegame + onlinevideo + onlinemusic,
data = census.at.school.5000
)
byMRO(mr, ~gender, mroPara)
byMRO(mr, ~ gender + handed, mroPara)
[Package iNZightMR version 2.3.0 Index]