validate_data_variables: Validate Data Variables

View source: R/U01-data-validation.R

validate_data_variablesR Documentation

Validate Data Variables

Description

Performs all variable-specific validation checks on treatment, time, event, and covariates. Only stops execution if critical errors are found.

Usage

validate_data_variables(data, treatment_var, ps_formula, censor_formula)

Arguments

data

A data.frame containing the analysis data.

treatment_var

Character string of treatment variable name.

ps_formula

Formula object for propensity score model.

censor_formula

Formula object for censoring model.

Value

Invisible NULL if all checks pass; otherwise throws an error.


PSsurvival documentation built on Dec. 9, 2025, 9:07 a.m.