Learn R Programming

MRTAnalysis (version 0.4.1)

.mcee_check_control_formula: Validate control formula excludes treatment and outcome

Description

Validate control formula excludes treatment and outcome

Usage

.mcee_check_control_formula(control_formula, treatment, outcome, dp, label)

Value

Invisibly TRUE if valid, otherwise stops with error

Arguments

control_formula

RHS-only formula for control variables

treatment

Treatment column name

outcome

Outcome column name

dp

Decision point column name (used in error messages)

label

Descriptive label for error messages