Learn R Programming

MRTAnalysis (version 0.4.1)

.mcee_check_formula_mediator: Check config formula for inclusion/exclusion of mediator

Description

Check config formula for inclusion/exclusion of mediator

Usage

.mcee_check_formula_mediator(config, target, mediator)

Value

Invisibly TRUE. Warnings are produced if formulas look suspicious.

Arguments

config

A nuisance config list (may or may not contain `formula`).

target

Character scalar, one of "p", "q", "eta", "mu", "nu".

mediator

Character scalar: mediator variable name.