| validate_outcome_exists | R Documentation |
Checks that the specified outcome variable (or survival variables within Surv() expression) exists in the dataset. Raises informative error if variables are missing. Handles both simple outcomes and Surv() expressions.
validate_outcome_exists(data, outcome)
data |
Data frame or data.table to check. |
outcome |
Character string outcome specification (may include Surv()). |
Invisible TRUE if validation passes, otherwise stops with error.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.