mi: Create an 'mi' object

View source: R/mi.R

miR Documentation

Create an mi object

Description

Create an mi object, usually used as a response variable in a model formula.

Usage

mi(bag_label, bag_name)

Arguments

bag_label

The bag label or response, recorded as 0 = negative, 1 = positive.

bag_name

A unique bag identifier for each instance.

Value

An object of class mi. Currently, no methods are implemented for this.

Author(s)

Sean Kent

See Also

Other multiple instance formula helper functions: mild()

Examples

mil_data <- generate_mild_df(positive_degree = 3, nbag = 10)
with(mil_data, head(mi(bag_label, bag_name)))
df <- get_all_vars(mi(bag_label, bag_name) ~ X1 + X2, data = mil_data)
head(df)


mildsvm documentation built on July 14, 2022, 9:08 a.m.