Learn R Programming

iNZightMR (version 2.3.0)

byMRO: Calculate MRO inference for subsets

Description

Constructs a multiple response object (MRO) subset by another explanatory variable.

Usage

byMRO(mro.obj, formula, FUN, ...)

Value

an object with classes of by and bymrocalc

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

See Also

mroPara

Examples

Run this code
mr <- iNZightMR(online ~ onlinegame + onlinevideo + onlinemusic,
    data = census.at.school.5000
)

byMRO(mr, ~gender, mroPara)
byMRO(mr, ~ gender + handed, mroPara)

Run the code above in your browser using DataLab