Learn R Programming

PSsurvival (version 0.2.0)

validate_data_variables: 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)

Value

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

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.