check_variables_exist: Check if Variables Exist in Data

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

check_variables_existR Documentation

Check if Variables Exist in Data

Description

Verifies that all variables referenced in formulas exist in the dataset.

Usage

check_variables_exist(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.