Skip to contents

Turn an outcome column into a 0/1 indicator

Usage

mm_event_indicator(values, positive_class = NULL)

Arguments

values

The outcome column.

positive_class

The event level, or NULL to infer.

Value

Integer vector of 0 and 1.