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 iNZightMR)

formula

variable for subsetting, as a formula (e.g., ~x)

FUN

the function to apply to subsets

...

additional arguments passed to FUN

Value

an object with classes of by and bymrocalc

See Also

mroPara

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]