byMRO: Calculate MRO inference for subsets

View source: R/bymro.R

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

iNZightVIT/iNZightMR documentation built on Feb. 3, 2024, 4:42 p.m.