check_outcome_value: Check that the outcome variable is valid. Pick outcome value...

View source: R/checks.R

check_outcome_valueR Documentation

Check that the outcome variable is valid. Pick outcome value if necessary.

Description

Check that the outcome variable is valid. Pick outcome value if necessary.

Usage

check_outcome_value(dataset, outcome_colname)

Arguments

dataset

Data frame with an outcome variable and other columns as features.

outcome_colname

Column name as a string of the outcome variable (default NULL; the first column will be chosen automatically).

Value

outcome value

Author(s)

Zena Lapp, zenalapp@umich.edu

Kelly Sovacool, sovacool@umich.edu

Examples

## Not run: 
check_outcome_value(otu_small, "dx", "cancer")

## End(Not run)

SchlossLab/mikropml documentation built on Aug. 24, 2023, 9:51 p.m.