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. Alternatively, the input can be in TreeSummarizedExperiment format.

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)

mikropml documentation built on Dec. 1, 2025, 9:08 a.m.