| detect_outcome_type | R Documentation |
Automatically determines whether an outcome variable is binary, continuous, or count-based by examining the data values. Used for automatic model type selection and validation. Binary outcomes have 2 unique values, continuous have many values or non-integers, counts have integers >= 0.
detect_outcome_type(data, outcome)
data |
Data frame or data.table containing the outcome variable. |
outcome |
Character string naming the outcome variable. |
Character string: "binary", "continuous", "count", or "unknown".
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.