split: split

Description Usage Arguments Value Examples

Description

Helper function to perform a split on a categorical predictor

Usage

1
split(pred, out)

Arguments

pred

A vector of zeroes and ones

out

A vector of numeric or intreger values

Value

A matrix with two columns, the first being the values of the outcome corresponding to the 0 value of the predictor, the second to 1.

Examples

1
split1 = split(pred1, out)

andriizakharov/DDMtree documentation built on May 21, 2019, 9:19 a.m.