dot-validate_exposures: Validate Exposure Variable(s) for Regression

.validate_exposuresR Documentation

Validate Exposure Variable(s) for Regression

Description

Ensures that the exposure variable has at least two non-missing levels or sufficient numeric variation to support regression modelling.

Usage

.validate_exposures(data, exposures)

Arguments

data

A data frame containing the exposure variables.

exposures

Character vector of column names to validate.

Value

Returns TRUE if valid; otherwise throws an error.


gtregression documentation built on Aug. 18, 2025, 5:23 p.m.